[What you need to know to start the day: Get New York Today in your inbox.]

An ordeal that ended with police officers shooting a half-naked man in Queens on Sunday afternoon began just before 3 p.m.

The man, who is in his 30s, first crashed his car into a police car in front of the 111th Precinct in Bayside, the police said. He then doused both cars in accelerant fluid and lit his own car on fire. As police officers approached, the man, who was not wearing pants or underwear, lunged at them with a 12-inch kitchen knife.

Two police officers then fired eight gunshots, striking the man in his torso and leg. The man was transported to NewYork-Presbyterian/Queens hospital, where he remained in stable condition on Sunday night. The two officers were also transported to a hospital to be evaluated.

The police did not identify the man but said he was not previously known to the officers in the precinct.