The suspect’s condition could not be learned immediately. County police said that officers had followed a car after a commercial robbery.
Both the officer and the suspect were taken to a hospital after the shooting, which occurred about 9 p.m. on Parkland Court, near Marlboro Pike.
Eddie L. Martin, the vice mayor of District Heights, said in a telephone interview from the hospital that a bullet-resistant vest worn by the officer protected him.
A shot “struck his vest,” Martin said.
Martin said late Saturday that he could not comment further because the matter remained under investigation.
District Heights is a city of about 6,000 near Marlboro Pike and Silver Hill Road, with an area of about one square mile.
It has a 12-member police department, Martin said.
The shooting took place in Parkland Village, a development of two- and three-story brick apartments.
Several residents there said their street, Parkland Court, is generally serene.
“It’s very nice and quiet here,” said one.
One said she heard three gunshots — “pop-pop-pop” — before the arrival of police, who strung crime-scene tape around the area.
The section of Marlboro Pike around the corner from the shooting scene is a commercial strip with small stores and restaurants on each side.
The shooting was the second this week in the Washington area in which an officer was struck.
A D.C. police officer was wounded Tuesday night in an exchange of fire with a suspect in the Trinidad area of the city.