Two Boston police officers were hospitalized after they were kicked, punched, and choked by six teenagers related to a person they were arresting, authorities said.

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.

Mayor Martin Walsh stressed the assault was not related to rising national tensions over police conduct following the killings of unarmed men in Missouri and New York City.

Morrisset, and 18-year-old Lorcen Morrisset, who is accused of participating in the attack, are 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, face assault and battery on a police officer and other charges in juvenile court.

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 Morrisset, residents of two apartments came to his aid and "kicked, punched, and choked" the officers.

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

The officers were treated for undisclosed injuries and were released from the hospital. Their names were not made public.

The Associated Press contributed to this report