From the Super Mario Wiki
Retrieved from "https://www.mariowiki.com/index.php?title=Pest_Control&oldid=2889518"
The player must simply shoot the part of the monster's body that the green box is over. It is either over the chest, its right arm, or its left arm. The player must press or to shoot.