Police declined to identify the boy, who is recovering in a hospital and receiving psychiatric care. The name of the officer who fired the shots was not immediately released.

In 2013, a Sonoma County deputy shot and killed a 13-year-old boy who was carrying a pellet gun that looked like an assault rifle.

The death of Andy Lopez prompted protests complaining of police mistreatment in communities of color. The teen's family also filed a federal wrongful death lawsuit against the county and sheriff's department.

A federal judge earlier this year ruled that the lawsuit can go forward. The county is appealing.