A District police officer shot and wounded a pit bull Thursday morning as the animal charged at a child in Anacostia, a department spokesman said.

Officer Araz Alali said police were called to the 1900 block of 17th St., SE, near Minnesota Avenue and Good Hope Road, about 7:30 a.m. for a report of a loose dog running yard to yard.

“One of the officers sees the pit bull charging at a child and to protect the juvenile, the officer discharged her service weapon,” Alali said.

The spokesman said the dog was alive at last report at 8:10 a.m. and was being treated by animal control officers. Alali said that neither the child nor the officers were harmed.