A deputy with the East Baton Rouge Parish Sheriff's Office was wounded and a gunman was killed in a gunfight on Sunday.

According to The Advocate, the suspect—identified as 39-year-old Bernard Ledlow—appeared to be falling asleep at the wheel of a moving vehicle so police initiated a traffic stop.

Police say Ledlow fled and crashed several miles away. During the vehicle pursuit Ledlow reportedly fired a rifle through his back windshield at pursuing law officers and at a deputy who had been setting up road spikes.

After crashing his car, Ledlow ran into a wooded area and continued to shoot at pursuing officers and deputies

One of the shots grazed a deputy's leg. The deputy was transported to a nearby a hospital for treatment.

East Baton Rouge Parish Sheriff Sid Gautreaux said deputies found Ledlow about six hours later in the woods. It led to a confrontation that ended when a deputy shot and killed him, the sheriff said.

Ledlow had recently finished a 17-year prison sentence for federal gun and drug infractions, according to local and federal authorities.