MANHATTAN - Police say an NYPD officer from Lynbrook was shot during a confrontation with a suspect in Harlem this afternoon.

Det. Kevin Herlihy, 47, was chasing 52-year-old Michael McBride when McBride opened fire on Herlihy in the subway station at 145th Street and St. Nicholas Avenue, striking him in the arm, according to officials.

Police say Herlihy returned fire, striking McBride in the chest, killing him.

Herlihy was taken to New York Presbyterian Hospital, where he was listed in stable condition and is expected to make a full recovery, officials say.

Police say McBride was wanted in connection with the shooting of a woman in Queens yesterday. McBride was currently out on parole after a robbery conviction and had an extensive list of prior convictions, officials added.

This is the third shooting of an NYPD officer from Long Island in recent months. Officer Kevin Brennan was shot in Brooklyn two weeks ago and Det. Peter Figoski was killed in a shooting two months ago, also in Brooklyn.

Hero's homecoming for shot NYPD officer from LIMan accused of killing NYPD detective says he's sorry