The shooting happened at 2:14 p.m. Saturday (June 19) in the city of Flint, according to police.
Authorities said the officer was working at a traffic point for the Juneteenth celebration parade when a vehicle drove up to him.
The lone occupant of the vehicle fired at the officer, who returned fire and struck the gunman, according to officials. The shooter was taken to a nearby hospital for treatment.
The officer was not injured, police said. No bystanders were hurt, either.
Flint police asked Michigan State Police to investigate the incident.