A man in North Charleston successfully fought off his would-be robber, who fired a parting shot Wednesday as the victim made his escape, he told the police.

Around 5 p.m., officers from the North Charleston Police Department were called to the 3800 block of Dorsey Avenue, which is near the Dorchester Road interchange with Interstate 526.

The man told the authorities that he had been sitting in his parked vehicle when someone walked up, pointed a silver handgun and demanded money. He refused to fork over any cash.

Instead, he grabbed the gun.

After struggling with the robber, the man managed to drive off. The robber fired his pistol into the air before running back toward his home.

It wasn’t immediately clear whether the two knew each other, but police spokesman Spencer Pryor said a suspect had been identified.

Officers still were searching for him this morning. He’s wanted on a charge of attempted armed robbery.

The police did not immediately release the suspect’s name.

Reach Andrew Knapp at 937-5414 or twitter.com/offlede.