Her injuries were not considered serious, authorities said.
The girl was walking the dog when the boys - believed to be in their early teens - approached her and said they were going to shoot the animal.
When the girl stood in front of her pet to shield it, one boy fired several shots before he and the other boy fled.