Police have arrested and charged a 23-year-old D.C. man they say was one of at least two people who broke into an off-duty Alexandria sheriff’s deputy’s Fort Washington home Tuesday night in an incident that ended when the deputy shot and killed the other intruder.

Brian Keith Whitaker is charged with first-degree burglary and other related counts, according to authorities and court records. He was taken into custody in an unrelated case, and detectives were later able to connect him to the break-in, said Lt. William Alexander, a Prince George’s County police spokesman.

Online court records show that Whitaker was formally charged Friday morning.

The break-in occurred Tuesday night at a home in the 8400 block of Rose Marie Drive, authorities have said. Police said an off-duty Alexandria sheriff’s deputy arrived home to find the house had been broken into, and he got into a confrontation with a stranger inside.

The deputy then shot the stranger, who ran outside and collapsed, police said. He was pronounced dead on the scene. Police identified that man as 20-year-old Jon Adgrain Pocknett of Indian Head.

Alexander said it did not appear that Whitaker was part of the confrontation, and he was not charged in connection with the shooting.

The deputy did not use his service weapon in the shooting, and detectives were probing initially whether it might have been taken in the burglary. Law enforcement officials, speaking on the condition of anonymity because they could be disciplined for discussing the ongoing probe, said the weapon had since been recovered.

The deputy was placed on administrative leave after the incident, and sheriff’s officials said they were conducting a separate investigation into the matter. They declined to identify the deputy.