You should actually be able to shoot the worm when it's underground, but it has a very tiny hitbox :)