PHOENIX -- A 53-year-old man who was bitten by an aggressive dog outside a a QuikTrip in Phoenix Thursday morning was then shot by the officer who had responded to the scene, CBS affiliate KPHO reports.

At around 4 a.m., bystanders outside the store contacted an officer who happened to be inside to tell him there was an aggressive dog attacking people out front, according to Sgt. Jonathan Howard with the Phoenix Police Department.

The officer went outside to warn others about the dog and to call for animal control. That's when, Howard said, a man exiting the store was bitten by the stray mastiff/pit bull mix.

Get Breaking News Delivered to Your Inbox

The station reports that when the officer tried to subdue the canine, it bit him in the arm. The officer then fired at the dog but the man who had just been bitten before him was also hit by one of the officer's rounds.

He had to be transported to a hospital both for treatment of gunshot wounds and dog bite wounds. However, his injuries are not life-threatening.

The officer stayed on scene to help investigators and then was taken to a hospital to be treated for his bite injuries, the station reports.

Maricopa County Animal Care and Control officers took the dog to the West Valley Animal Care Center, where it was euthanized due to its injuries. MCACC spokeswoman Melissa Gable said the dog did not have a microchip. He was wearing a red collar, but there were no tags or other form of identification.