Suspect charged with attempted murder after shooting rookie NYPD cop, claims gun went off accidentally