Off-duty NYPD officer shot in Brooklyn

An off-duty NYPD officer was shot in Brooklyn on Saturday night.

The shooting happened around 7 p.m. on Ruby Street in East New York 

The shooting was the result of an attempted robbery that began with an ad for a vehicle on Facebook Marketplace.

Adeed Fayaz, a 5-year veteran of the force, was shot in the head and was in critical condition.

RELATED: NYC marks 1 year since deaths of NYPD Detectives Wilbert Mora and Jason Rivera

The call of a man shot came in just before 7 p.m. The officer had gone with his brother-in-law to meet a man who had listed a Honda Pilot for sale for $24,000 on Facebook Marketplace.

Police say when they got there the man was walking them to a driveway and jokingly asked, "Are you guys carrying a gun?"  Both men answered, "No."

RELATED: NYPD officer shot in the Bronx, teen in custody

That's when police say the man put the officer in a headlock and pointed a gun at his head and demanded the money.

As the officer broke free, the gunman fired, hitting him in the head.

The gunman started to run away and kept firing as he took off.

The brother-in-law grabbed the officer's gun and started firing back.

The gunman jumped into the driver's seat of a black BMW and drove off.  Police were able to identify that a woman who lives in the nearby Pink Houses was the owner of the car.  The NYPD determined that she was the mother of the gunman.

Police say he was later seen getting out of the car at a Dept. of Sanitation facility at 130th St. and Park Ave. in Manhattan.  He then was seen getting into a car with a woman and five young children were seen leaving 1948 Park Ave. and driving off in a car.

They traced the car to a Days Inn in Nanuet, New York.

When police got to the second-floor room of the hotel, they found Jones, the woman, and 5 children, ranging in age from 6 months to 11 years old.  The woman was questioned but not charged.