RIVERSIDE (CBSLA.com) — A Riverside County sheriff’s deputy was hospitalized Wednesday after accidentally shooting himself in the leg when a large dog approached him at a Riverside home.

A Riverside County sheriff’s spokesperson said the deputy was serving court documents to a resident in the 3000 block of Eucalyptus Avenue at about 2 p.m. when a dog came at him aggressively.

READ MORE: Daniel Williams, 24, Arrested In Connection To Saturday Fatal Double Shooting In Downtown Long Beach

The deputy, who has not been named, feared for his safety and pulled out his gun but ended up shooting himself in the process, according to the spokesperson.

READ MORE: LA County Continues To See COVID-19 Surge, Doctor Says Not Getting Vaccine Reckless

The deputy was hospitalized with non-life threatening injuries. He was not bitten.

KCAL9’s Tom Wait reports the dog was not hit or injured and police will not be taking any further action against the dog or its owner, who was not the person being served.

MORE NEWS: 2 Killed In Wrong-Way Crash On 91 Freeway In Long Beach

(©2014 CBS Local Media, a division of CBS Radio Inc. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed. Wire services contributed to this report.)