Cops were able to stop a Brooklyn deli robbery in progress on Wednesday—helped in part by the thieves' stupidity.

When Police Officer Mark Xylas and Police Officer Favio Quizhpi responded to calls at Gourmet Buffalo Deli on Buffalo Avenue, they found two men beating a deli worker. They yelled, "POLICE! DROP YOUR GUNS!" and the suspects started running to the back of the store, where other store patrons were hiding in the back.

According to the NYPD, "As the suspects attempted to break down a door in the rear of the location, officers Xylas and Quizhphi were able to safely direct the patrons out of the location. Realizing that they were not able to escape through the bathroom door, both suspects walked out from the rear of the store dropped their guns and were apprehended with the assistance of the 77th Precinct's Anti-Crime Unit without further incident."

The deli clerk, Said Gaafar, told WABC 7, "All I remember is they start beating me again with the feet and with the guns too, more times, many, many times.

The police recovered a .32 caliber Rossi revolver and a .45 caliber Hi-point semi-automatic firearm were recovered. The suspects, Isaiah Henderson, 20, and James Gillepsie, 23, were charged with robbery, criminal possession of a weapon, unlawful imprisonment and menacing.