Problems with creating a hole

Hi,
I have to recreate a corner part of a Rubik's cube. The black cube in the attachment is the part I'm supposed to use as a reference. I created two parts: the cube and the protruding shape, now the only thing I have to do is to create the hole shown in the images. I tried:
- using boolean subtraction
- creating offset planes, and extruding shapes sketched on them
- lofting
- using the split tool and removing the faces
- creating a composite curve and isolating it
The closest I got is when I used the split tool and deleted faces.
What tools can I use to do it?

Answers