NYPD officer recovering at hospital after Brooklyn subway shooting