H e has dug out a deep hole, and has fallen into the hole he has dug.
He made a pit and hollowed it out and has fallen into the hole which he made.