Hello.Muscle spasm secondary to physical exertion (walking your dog) is a likely diagnosis.You must be at rest and apply heat in area of pain.
Also,In my opinion Diclofenac
50 mg thrice a day+Diazepam
5mg at night can be taken for treating your pain. Please consult your local doctor for a prescription.
I wish you good health.
(In case the answer would have been useful please indicate this)