Philadelphia police say an off-duty detective picking up takeout food ended up stopping a pizza shop robbery in a close-quarters shootout that left one of the suspects dead.

Chief Inspector Scott Small says two men entered Rising Sun Pizza just before 11:30 p.m. Thursday. They put a gun to the head of the off-duty detective, took $20 out of his hands and forced him to the floor. As the two announced they were robbing the shop, the detective identified himself and pulled his weapon.

Small says that's when one of the suspects fired at least two shots from point-blank range; the detective returned fire. The two suspects then fled. One collapsed dead in the parking lot; the other escaped.

The detective, pizza shop owner and an employee were unharmed.