An NYPD officer shot a man who charged at cops with a knife in Harlem on Saturday night, police said.

The shooting happened about 8:30 p.m. when the knife-wielding man in a Whole Foods supermarket lunged at the 28th Precinct officer, according to the NYPD. The officer fired his weapon and struck the man in the shoulder, police said.

Police had been called for a violent shoplifter at the market at 125th Street and Lennox Avenue, the NYPD said. Officers told the man several times to drop the knife. One officer fired twice and hit the man once, police said. The man’s knife was recovered at the scene.

The injured man was arrested and taken to Harlem Hospital Center, police said. He was listed in stable condition, police said.

Get the latest news and more great videos at NewsdayTV Credit: Newsday

Updated 22 minutes ago Power bills may increase ... What's up on LI ... Plays of the week ... Get the latest news and more great videos at NewsdayTV

Get the latest news and more great videos at NewsdayTV Credit: Newsday

Updated 22 minutes ago Power bills may increase ... What's up on LI ... Plays of the week ... Get the latest news and more great videos at NewsdayTV

SUBSCRIBE

Unlimited Digital AccessOnly 25¢for 6 months

ACT NOWSALE ENDS SOON | CANCEL ANYTIME