NYPD officer who was killed by friendly fire is hailed as a hero