An off-duty NYPD officer, responding to a Craigslist ad about a car for sale, shot and killed one of the two men posing as sellers late Monday night in Springfield Gardens, Queens — after the pair robbed the officer at gunpoint, police said. Police are searching for the second man, who they said fled in a white BMW.

The shooting on 145th Avenue near 177th Place was reported in a 911 call at 10:36 p.m., the NYPD said.

The suspect shot and killed by the officer has been identified as Devon Holder, 30, of 1103 E. 83rd St. in the Canarsie section of Brooklyn. Police said he was pronounced dead at Jamaica Hospital Medical Center at 11:14 p.m.

photosRecent NYC mug shotsSee alsoMajor NYC crime

A black air pistol was recovered at the scene, the NYPD said. The pistol, a CO2-powered PT-85 Blowback, fires pellets but is designed to look and act like a real handgun, according to the manufacturer’s website.

The officer was taken to Long Island Jewish Medical Center in New Hyde Park for treatment of tinnitus. He was otherwise not injured, police said.

The officer’s hometown and police precinct weren’t immediately clear.

advertisement | advertise on newsday

Police said the officer had gone to Springfield Gardens in response to a Craigslist ad offering a car for sale, believed to be the same white BMW used as the getaway car. Police said that after being met by the two men, one of the suspects pointed a gun, now believed to be the air pistol, at the off-duty officer, and said the pair “forcibly” took his wallet.

The officer drew his weapon and fired “several rounds,” police said, striking Holder in the torso and left leg. It was not clear how many rounds were fired or whether the second suspect was struck by gunfire or had been wounded before he fled.

Police said the investigation is continuing and that the second suspect remained at large Tuesday.