Police officers on Thursday shot and wounded a man driving a car linked to an armed robbery after chasing the vehicle nearly 30 miles from southern Anne Arundel County to Lansdowne, according to a Baltimore County police spokeswoman.

During the chase up Interstate 97, police said the man waved a handgun out of the window of the car. The pursuit involved troopers from the Maryland State Police and officers from Baltimore City and Baltimore and Anne Arundel Counties.

Det. Cathy Batton, the Baltimore County police spokeswoman, said the chase began about 11:07 a.m. on Solomons Island Road, southwest of Annapolis, and ended about 11:48 a.m. at Virginia Avenue and Fenor Road in the Baltimore Highlands neighborhood.

Batton said the car struck an Anne Arundel County police cruiser, slightly injuring the officer inside, and the driver got out, “armed with a handgun.” A police statement says the man threw the gun down, “then made an attempt to retrieve the weapon.”

Police revised this account later, saying that the man got out of the car "with the gun pointed at his own head. Officers ordered him to drop the gun. He refused and pointed the gun at the officers."

Police said one officer from Baltimore County and another officer from Anne Arundel County shot at the man, hitting him in the lower body. The 19-year-old man was taken to Maryland Shock Trauma Center; his condition and name was not immediately available.

Batton said detectives do not yet know how many shots were fired by the officers, or whether bullets from one gun or both struck the man. Batton said the man was driving a car that fit a description of a vehicle used in an armed robbery in the Wilkens area of Baltimore County on Wednesday night.

The shooting occurred in a residential area near three schools — Baltimore Highlands Elementary, Riverview Elementary and Lansdowne High School — which were locked down for about 15 minutes.