The man, who was not wearing pants or underwear, displayed a knife before he was shot in the arm near the intersection of 215th Street and Northern Boulevard, close to the 111th Precinct in Bayside, police said.
He was taken to a hospital and is expected to survive, police said.
At least one police officer was also taken to a hospital to be evaluated for minor injuries.
This article originally appeared in The New York Times.