NYPD officer shot in Brooklyn standoff