Shootout between police and gunman caught on ...

FAIRVIEW HEIGHTS, Ill. -- Officials in Illinois have released dramatic dashcam video of a gunman firing at officers during a 2012 traffic stop as the suspect was sentenced to 40 years in prison, reports CBS affiliate KMOV.

The incident happened Sept. 25, 2012, in Fairview Heights, Ill. -- about 15 miles east of St. Louis.

Two officers reportedly pulled over 30-year-old Dallas McIntosh and approached his car. That's when, police say, McIntosh started firing.

Get Breaking News Delivered to Your Inbox

The bullet struck a flashlight one of the officers was holding, causing shrapnel to wound his hand, reports the station. Officers returned fire, and McIntosh was also struck, reports the station.

McIntosh was arrested after a short chase. He was reportedly charged with two counts of attempted murder and was sentenced last week to 40 years in prison.