NYPD Officer out of the hospital after being shot in Brooklyn