NYPD officer shot in Brooklyn