Police in a Baltimore-area community have shot and killed an African-American woman after a standoff at an apartment complex, police said.

A child was injured in the shootout, and a man was apprehended.

Early Monday morning, police had gone to serve several arrest warrants on two suspects, a man and a woman, at Sulky Court in Randallstown, in Baltimore County, Maryland. Officers heard male, female and children's voices inside the apartment.

They waited outside the door for around 10 minutes, Police Chief Jim Johnson said during a press conference Monday, and one officer obtained a key to the apartment.

Upon opening the door, they saw the woman, identified as 23-year-old Korryn Shandawn Gaines, aiming a shotgun at them. The officers retreated and called for tactical backup.

"My personnel showed great firearms restraint during this dialogue," Johnson said.

At around 3 p.m., after several hours of a standoff, the woman threatened officers verbally and with the weapon, according to the police account.

One police officer fired a single shot, to which the suspect fired back. 

Officers responded with further shots and the woman, as well as a 5-year-old child who had remained in the apartment, were struck.