A Mattapan man is being held on $25,000 bail after leading police on a foot chase after a shooting.

Errin Crawford, 26, was arraigned Monday on charges of unlawful possession of a firearm, unlawful possession of ammunition, possession with intent to distribute a class B substance and operating with a suspended license.

Prosecutors allege police responded to the area of Trull and Hancock streets shortly after 7:30 p.m. Sunday for a report of gunfire. Once there, police saw and followed a black Dodge Charger with its windows shot out that was fleeing the scene. The charger turned the wrong way on Trull Street and struck a pole on Dacia Street. The driver then fled on foot.

Police arrested the driver, later identified as Crawford after “a brief struggle,” according to the Suffolk County District Attorney’s office.

Police say they saw Crawford discard a small plastic bag containing 12 individually wrapped bags of suspected cocaine, according to the DA.

A loaded Raven 25 caliber handgun was observed in plainview on the Charger’s dashboard. A search of the crime scene yielded 19 nine millimeter shell casings. Along Crawford’s path of flight, officers recovered a blue latex glove and a gray and yellow shirt that Crawford was observed discarding.

A 21-year-old Dorchester man who was shot multiple times in the upper back during the shooting was treated at Boston Medical Center. he is expected to survive.

Judge Serge Georges imposed $25,000 bail and ordered Crawford to submit to GPS monitoring and a curfew if released. Crawford is due back in court June 2.