The D.C. police officer who fatally shot a man Monday was investigating an alleged threat against relatives of a woman who was killed last week, according to three police department officials and a member of the victim’s family.

Monday’s shooting occurred outside the same apartment building — in the 4900 block of G Street SE — in which Rokeida Spriggs, 21, was fatally shot Friday. A relative said occupants called police Monday after finding a threat scrawled on Spriggs’s door.

Police officials said that an officer was in the apartment building to prevent further violence when he confronted a man about 4:50 p.m. The man ran, and the officer chased him to the parking lot.

Assistant Police Chief Alfred Durham said Monday night that the man drew a gun from his waistband, turned and pointed it at the officer, who fired. The police report made public Tuesday says that the man “produced a handgun” and that the officer ordered him to “drop the weapon, but [the man] did not comply.”

The report says the officer fired several rounds at the man, who was pronounced dead at 5:30 p.m. at Prince George’s Hospital Center. Police identified the man as Robert Brown, 26, of Southeast Washington.

The police report says a handgun “was recovered from his right front cargo pocket.” A police spokeswoman would not elaborate.

Police said they took into custody a man who was standing near a car outside the apartment building but had not filed charges as of Tuesday afternoon. Police said the driver of the car sped away and has not been found. No arrests have been made in Spriggs’s killing.

The police officials who spoke did so on the condition of anonymity because they are not authorized to speak with the news media. The relative did not want to be named for fear of retaliation.

The police officials said they are investigating whether Friday’s killing is linked to a year-long feud between the victim and others in the apartment building. They said that on Friday, an argument in the hall ended when the woman sprayed a man with mace and he fired a gun as she tried to hide behind her apartment door.