The attacker was later shot by police and died on arrival at a hospital. The victim, a young man stabbed in the side of the face, was being treated, said NYPD spokesman Adam Navarro.
The attack happened at the Chabad Lubavitch World Headquarters in Brooklyn at around 1:40 am (0640 GMT).
Police who rushed to the scene told the assailant to drop the knife. Instead, he lunged at officers and was shot once in the torso, Navarro said.