A Goose Creek police officer on Sunday shot a dog that police said threatened a child and then charged the officer.

The officer was dispatched about noon to St. Charles Way in reference to a loose yellow Labrador acting aggressively toward an 8-year-old at that residence, police Captain John Grainger said.

He said the dog was gone, and police went to the Dennis Drive home where the dog lives, and while the officer approached the home the dog charged, “placing the officer in fear of being harmed.” The officer drew his pistol and fired two rounds at the dog, Grainger said.

The dog’s owner planned the euthanize the dog, he added.

The dog’s owner stated the property was affixed with an electric “invisible fence” that activates shock collars worn by his dogs and thus keeps them on his property. Based on the circumstances, the dog’s owner was not charged with a violation of the City’s animal restraint ordinance, Grainger said.