A Hayward man was shot and killed in front of his 13-year-old daughter while walking the family's dogs Tuesday evening, the result of a dispute with another man who took exception to one of the dogs sniffing at his leg, police said Wednesday.

Thomas Cunningham, 38, was shot outside a liquor store around 10 p.m. near Vermont and B streets shortly after he'd gone inside to buy ice cream for his daughter.