Three dogs were shot and killed after attacking an 11-year-old boy who was riding his bike in Northwest Washington, authorities said.

A witness saw the dogs, all pit bulls, attacking the boy near the corner of 8th Street and Sheridan Street just after 1 p.m. Sunday, D.C. police spokesman Officer Araz Alali said. Alali said the witness went inside his home, retrieved a gun, and shot one of the dogs, killing him. When police arrived, an officer shot and killed the other two dogs.

Alali said the boy, who was taken to a local hospital with bites throughout his body, was in stable condition.