SAN FRANCISCO (CBS SF) — A San Francisco police officer directing traffic downtown shot and injured a dog that ran at him on Saturday, police said Monday.

The officer was directing traffic at Kearny and Post streets shortly before noon when he saw a dog running at him, police said.

READ MORE: 'He's In Good Spirits;' Former OPD Capt. Ersie Joyner Recovering After Shooting; Remains in ICU

The officer fired a shot, hitting the dog in the leg. The dog was taken to a veterinarian for treatment and is expected to survive, police said.

READ MORE: Fremont Neighbors Of Movie Director Joel Souza Stunned Over Shooting On Set Of Alec Baldwin Movie

The man who had been holding the dog’s leash was detained and arrested, although police did not immediately specify on what offenses.

The officer was not injured.

MORE NEWS: Pfizer Scientist Testifies Against Holmes in Theranos Trial

© Copyright 2017 by CBS San Francisco and Bay City News Service. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.