From the Super Mario Wiki
The Mechanical Fish is an enemy in the Game Boy Advance game Wario Land 4. It looks like a yellow submarine in the shape of a fish, with a drill for a nose, a periscope, red eyes, and grey fins. The Mechanical Fish only appear in the boss battle against Catbat in the Sapphire Passage. They are found one at a time, swimming in the water channel in the boss room, swimming back and forth with the intention of harming Wario with its drill. The Mechanical Fish can only be defeated with an S-Ground pound.