Ramos and an unidentified passenger were driving on Grote Street at about 9 p.m. when Officers Lundin and Thomas Sercu attempted to pull them over after observing the vehicle going too fast, said Chief of Detectives Dennis Richards.

The car turned into a driveway, and the patrol car pulled up behind it, according to Richards.

But when the officers got out of the car, Ramos backed the vehicle up and tried to run over Lundin, "nearly pinning him between the patrol car and the suspect's vehicle," Richards said.

Meanwhile, the passenger ran from the car, dropping a clip filled with ammunition. Sercu gave chase, but was not able to apprehend the passenger.

Ramos pulled away, but then backed up "in a second attempt to hit Officer Lundin," Richards said. Fearing for his life, Lundin then fired one shot into the back of Ramos' car, striking Ramos in the left shoulder.

Ramos fled and his car was found near Grote and Howell Street. Police arrested Ramos later when they were called to Sisters Hospital after officials there alerted them to a man seeking treatment for a gunshot wound.

Ramos took a cab to the hospital after abandoning the car, Richards said.

At the hospital, where Ramos was treated and released, police said they discovered an undetermined amount of crack cocaine hidden in his hair.

Ramos is charged with assault with a deadly weapon on a police officer and possession of a controlled substance. He pleaded not guilty in City Court on Friday morning and was being held on $500,000 cash or bond. He is set to return to court Friday.

Richards said investigators from the homicide and professional standards squads will continue the investigation. As is customary when an officer discharges his gun in the line of duty, Lundin, an eight-year-veteran of the force, is on administrative leave.