The first sentence means that a metal shaft, that was sticking out of the ground, was cut, at the level of the ground, so that none of it sticks out of the ground anymore.
The second sentence means that a metal shaft was driven some distance into the ground.