The officers, a woman and a man, went to an apartment in the city's Roxbury neighborhood on Monday morning to serve a warrant on a 19-year-old man for defaulting on court appearances, the Boston Herald reported.

Seven people were arrested in all, including the person police were originally seeking, Woobenson Morrisset.

Woobenson Morrisset, and Lorcen Morrisset, 18, who are accused of participating in the attack, were scheduled to be arraigned Tuesday. It's not known if either has a lawyer.

The other teens, a 17-year-old boy and girls, ages 13, 14, 15, and 16, were arraigned on assault and battery on a police officer and other charges in juvenile court Tuesday. The 17-year-old was held on $500 bail and the bail for the other teens was set at $1.

The teens will return to court on Feb. 12.

When the officers found Woobenson Morrisset in a rear stairwell, he attacked them, according to the police report.

Police Commissioner William Evans told WBZ-AM that as the officers were about to handcuff Woobenson Morrisset, residents of two apartments came to his aid and "kicked, punched, and choked" the officers.

They used pepper spray to fight off the attackers until other officers arrived. Evans said they never drew their guns.

A 14-year-old girl who was arrested said the female police officer who was at the apartment building used pepper spray on her, because she was recording the struggle with her phone and never attacked the officers.

"I was recording, and the lady sprayed the thing, pepper spray, and I got hurt," she said. "It was really burning, and I got it all over my hair."

A neighbor showed NewsCenter 5 a phone that they say police broke after the episode. The juveniles said police took their phones, which captured the encounter.

The officers were released from the hospital. Their names were not made public.