A North Charleston police officer fired a shot, grazing the ear of a pit bull that attacked him while he was trying to catch a man who shoved him and ran Monday morning.

The officer approached a man on Olympia Street about 11:15 a.m. The man shoved the officer and ran away, spokesman Spencer Pryor said. When the officer followed the man over a fence, he was attacked by a pit bull inside the yard.

The officer fired a shot at the dog, grazing its ear and allowing him to get away safely with scratches, Pryor said. He said the dog is fine.

The officer told dispatchers that he lost sight of the suspect while being attacked by the dog. Officers were unable to locate the man.