Video surveillance showed that Officer Carillo had racked the pistol’s slide and pulled the magazine out when the gun went off in Hell’s Kitchen