What am I? ($400) Middle School Version

I am a beetle that spends most of my time zigzagging back and forth on the water’s surface.  If caught, I may give of protective unpalatable secretion for protection.