It happened Wednesday as the officer was responding to a call about a dog on the loose on Water Street in Quincy.