Nigel Sykes, 19, was arrested after the attempted robbery at a restaurant near Wilmington, Delaware on Tuesday night.
According to police, Sykes walked into Seasons Pizza in the 600 block of South Maryland Avenue around 7:47 p.m. and announced a hold-up.
However, when Sykes demanded cash from the employees, police say one of the workers grabbed him and a struggle ensued.
During that struggle the gun went off, but nobody was injured.
Other employees joined in and they were able to hold Sykes until police arrived.
Some of the workers suffered minor injuries in the struggle.
After his arrest, police say further investigation linked Sykes to a string of robberies in the Wilmington and Claymont, Delaware areas beginning on September 30, 2010.
Those crimes include robberies at a bank, two convenience stores and five restaurants.
Sykes was arraigned and sent to prison for lack of $710,500 secured bail.
Robberies linked to Sykes:
-WSFS Bank, 2105 Philadelphia Pike, Claymont, DE (Thursday, September 30, 2010 at 1:56 p.m.)
-Wawa, 2621 Philadelphia Pike, Claymont, DE (Tuesday, October 26, 2010 at 2:38 a.m.)
-Pat's Pizzeria, 1815 Philadelphia Pike, Wilmington, DE (Saturday, October 30, 2010 at 10:45 p.m.)
-McDonald's Restaurant, 2702 Philadelphia Pike, Claymont, DE (Thursday, November 11, 2010 at 11:19 p.m.)
-Arby's Restaurant, 2719 Philadelphia Pike, Claymont, DE (Saturday, November 13, 2010 at 9:33 p.m.)
-Papa Johns Pizza, 2114 Marsh Road, Wilmington, DE (Thursday November 18th at 2114 Marsh Road, Wilmington, DE at 8:45 p.m.)
-Pat's Pizzeria, 1815 Philadelphia Pike, Wilmington, DE (Thursday, November 18, 2010 at 9:04 p.m.)
- 7-11, 5601 Kirkwood Highway, Wilmington, DE (Tuesday, November 23, 2010 at 2:02 a.m.)