Two pit bulls were shot and killed by D.C. police in Capitol Hill on Thursday as they attacked other dogs, authorities said.

Earlier Thursday, the pit bulls had bitten someone a few blocks away and had attacked another dog, a D.C. police official said.

The dogs were shot as they were running loose about 2 p.m. at 8th and C streets NE, the police said. Officers patrolling the area came upon the attack at the intersection, which is about a mile east of the Capitol grounds.

Before that incident, police said, the dogs had attacked a female at 10th Street and Maryland Avenue NE. Her age was not given, but police said members of the D.C. Fire and Emergency Medical Services Department treated her at the scene.

Police said the incident was being investigated by the department and by the city’s animal control agency. No information about the dogs’ owners was immediately available.

Get updates on your area delivered via e-mail