A D.C. police officer who was investigating a homicide in Southeast Washington shot and wounded an armed man Monday after a chase and confrontation at the homicide scene, authorities said.

The incident occurred about 5 p.m. in the Benning Ridge/Marshall Heights area, where the officer was canvassing for information about a fatal shooting that occurred there Friday, police said.

The officer, an 11-year veteran, encountered a man in an apartment house in the 4900 block of G Street SE, where the killing was reported, and tried to stop and speak with him. The man fled, and the officer pursued, Assistant Police Chief Alfred Durham said.

In the building’s parking lot, the man drew a gun from his waistband, turned and pointed it at the officer, Durham said. The officer fired and wounded the man.

He was taken to a hospital and was reported to be in stable condition.

Officials did not release the name of either the man who was shot or the officer. A gun was found at the scene, which is near Benning Road, about one mile south of East Capitol Street.

During the incident, another man was standing next to a car, which left the lot at high speed. That man was taken into custody, and police were searching for the car.

Durham said police were trying to determine whether Monday’s events were linked to the Friday homicide, in which a 21-year-old Southeast Washington woman was killed. She has been identified as Rokeida Spriggs.

Police also were trying to learn whether the man standing near the car was connected to the vehicle or to the man who was shot, Durham said.