This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

ASTORIA, Queens – Two NYPD members were sprayed with an accelerant and burned on Sunday night in the final moments of a manhunt for a 23-year-old who went on a violent spree earlier in the day, authorities say.

Inspector Scott Shanley, commanding officer of the NYPD Critical Response command and 35-year veteran of the NYPD and Lieutenant Andrew Childs, of the NYPD Critical Response Command and 14-year veteran of the NYPD.

The suspect, Patrick James Dillon, had slashed a woman, burned one man and fatally stabbed another before being shot in both legs by police, authorities said.

He was arrested in the Astoria neighborhood of Queens, following the manhunt — which involved “hundreds” of police officers — according to the NYPD.

Dillon began his crime spree, police say, at around 11:20 a.m. when he slashed a 39-year-old female in the neck and face. Sources tell CNN the woman was Dillon’s neighbor.

About four hours later and a mile away, police say Dillon fatally stabbed 55-year-old George Patouhas, owner of a liquor store, and sprayed a 61-year-old homeless man with gasoline before lighting him on fire.

All of the attacks appear to be random, sources said.

Dillon next broke into an apartment before fleeing back to the scene of the first crime, where he was discovered by the two NYPD officers.

Inspector Scott Shanley and Lieutenant Andrew Childs, both of the NYPD critical response unit, spotted Dillon in the rear of the first location at around 5:40 p.m. He had with him a bottle of accelerant and what appeared to be a small green kitchen knife, according to police.

Recovered at the scene of a police involved shooting. (NYPD)

Police then opened fire on Dillon before arresting him. Video rolled on by PIX11’s cameras captured the tense moments leading up to his capture.

Both Shanley and Childs were taken to Cornell Medical Center. They have been treated and released.

Dillon was taken to Elmhurst Hospital with a gunshot wound to his legs, police said.

The female slashing victim and the 61-year-old burn victim also were taken to city hospitals, the NYPD said.

Berta Carpio said she was walking to church when the suspect allegedly said to her, “What are you looking at, b*tch?”

She said he suddenly took her by the coat collar then slashed her in the face and stabbed her in the back of the head. She had five staples put into her skull.

The Carpios told PIX11 News they have long feared the suspect, whom they described as a neighborhood menace, for years. Dillon allegedly would unleash his dog on residents and allegedly smashed a neighbor’s door several months ago, according to the victim’s husband Jesus Carpio.

NYPD Assistant Chief Diana Pizzuti thanked “the hundreds of police officers who looked high and low” in what she called a “manhunt.”

“This has been a very unusual day here in Astoria,” Pizzuti said.

Police said Dillon has been arrested eight previous times, including criminal mischief, trespass, robbery, menacing but was never incarcerated.

Additional reporting by PIX11 News’ Myles Miller and Anthony DiLorenzo.