Officers responding to the scene encountered a man in the driveway carrying luggage, officials said.
The man, later identified as 38-year-old Courtney Gordon, slashed two of the officers with a kitchen knife before one of the officers shot him, New York Police Chief of Department Jeffrey Maddrey said at a press conference.
Officials said Gordon set fire to a couch in the home's living room, which kept police outside the residence until firefighters could arrive and extinguish the blaze.
Once inside, officers found three more people suffering fatal stab wounds — a 44-year-old woman, a 30-year-old man and a 12-year-old boy, according to police.
The officers also found a 61-year-old woman inside with multiple stab wounds. She was taken to a local hospital, where she was listed in critical condition.
- Child calls 911 after murder-suicide of family in New York City: reports
- Officers Went to a Long Island Home to Question a Murder Suspect. The Visit Ended With a 3-Year-Old Girl Shot and the Suspect Dead.
- FPD Top News of the Week: Woman Accused of Running Down Porch Pirate; Cops Say Teen Killed Family in Home Invasion Hoax; and More
The two officers that were stabbed suffered non-life-threatening injuries, according to officials.
Investigators said the officers were stabbed with a kitchen steak knife, which was found in the street after Gordon was killed. Detectives are working to determine if the same knife was used on the other victims.
Never miss a story — sign up for the Front Page Detectives newsletter. Be on the scene the moment news breaks.
Gordon had a prior arrest for strangulation in another domestic violence incident, and he was believed to have been visiting family at the home, WABC reported.
The investigation is ongoing.
Become a Front Page Detective
Sign up to receive breaking
Front Page Detectives
news and exclusive investigations.