A man sought in the killing of a woman in her Southeast Washington apartment last week has been arrested, according to D.C. police, who said the shooting came during a year-long feud among neighbors.

Charles W. Young Jr., 22, of Forestville, Md., was charged with second-degree murder while armed in the death of Rokeida Spriggs. Officer Araz Alali, a D.C. police spokesman, said that Young was arrested Thursday.

Young, known as “Chili,” was one of three men who on Monday returned to the victim’s apartment building in the 4900 block of G Street, police said. An officer was at the building protecting Spriggs’s relatives after they found a threatening note scrawled on their front door. Authorities said the officer confronted a man in a hallway and chased him to a parking lot, where they said he pulled a gun. Police said the officer fired, killing Robert Brown, 26, of Southeast Washington. A second man was taken into custody but not charged; a third man drove away from the scene.

Three police officials and a member of Spriggs’s family said the shooting came during a long dispute with others in the apartment complex. They said that the victim and a man argued in the hall Nov. 22 and that she sprayed him with Mace. The man then fired a gun as Spriggs tried to hide behind her apartment door, the officials said.

D.C. Superior Court records show that Young was charged with unlawful entry in April and ordered to stay away from the 4900 block of G Street. Court records allege that he broke into his girlfriend’s apartment on G Street and threw an iron at a glass table and a flat-screen television, shattering them.

He had been released pending trial, scheduled for Tuesday, and placed on high-intensity supervision with an electronic ankle bracelet. Court records show that he was removed from that program in September

Keith L. Alexander contributed to this report.