A 20-year-old Des Moines man has been charged with assaulting a police officer — with candy.

Sean McGuire, a student at Drake University, was arrested early Sunday at a convenience store, officials said. He allegedly threw several M&Ms at a Des Moines police officer, who was investigating a hit-and-run accident involving an intoxicated man.

Drake security guards on the scene noticed M&M candies falling on the ground around the officer, according to police reports. When the officer turned around, one of the candies hit his shoulder.

McGuire claimed he threw the candy because he was "sticking up for his friend," who apparently was the man suspected in the accident.