That sounds like a microwave gun. Microwaves work by agitating water molecules and, thus, creating heat.

Maybe they figured out how to set it so it doesn't kill a person but merely annoys them a whole heck of a lot.

It's so weird that we're coming up with so many ways to kill people more efficiently all the time.