Birmingham police arrested a man accused of robbing an auto parts store and its customers on Friday afternoon and being shot in an exchange of gunfire as he fled the scene.

Demetria Dinkins Jr. was arrested after showing up at St. Vincent's Hospital seeking treatment for a gunshot wound, Birmingham police said. He is charged with five counts of first-degree robbery and is being held on bonds totaling $200,000.

According to witnesses, Dinkins robbed an Advance Auto Parts store located in the 5300 block of Oporto Madrid as well as the four employees and customer that were inside at around 1 p.m.

When he attempted to flee the scene, the victims followed him and called 911.

Witnesses say they heard gunfire when the suspect stopped his vehicle on Montclair Road. Victims from the store robbery returned fire and hit the suspect.

While attempting to flee the scene again, the suspect crashed into two vehicles rendering his car inoperable. He then ran from the scene before police arrived.

According to Birmingham police, Dinkins was out of jail on previous charges and was wearing an ankle monitor during the robbery.

Court records show Dinkins was out of jail on bond on three counts of robbery at the time of Friday's robbery.

The victims involved in following after and shooting the suspect haven't been charged, police said

"We are thankful for no loss of life during this incident," Sgt. Bryan Shelton said. "As a department, we appreciate citizens who help us and are willing to step up. We caution against following suspects, as it poses a risk to the victims. In this case, the victims felt it was right and we are happy the offender is off the streets again."