Lopez-Sanchez, who told police the gun fired by accident, had been released from a San Francisco jail despite a request from federal immigration authorities that he be held in custody for possible deportation.