An on-duty police officer was shot and killed while conducting a vehicle stop in Queens Monday evening, officials said.

NYPD Officer Jonathan Diller, 31, and his partner were responding to a vehicle illegally parked at a bus stop in Far Rockaway just before 5:50 p.m. when a suspect inside pointed a gun at them, police said at a news briefing. 

The suspect fired the gun, and Diller was struck, police said. Diller was taken to Jamaica Hospital Medical Center, where he succumbed to his injuries, NYPD Commissioner Edward Caban said at the briefing. 

Caban said police believe Diller was shot in the torso underneath his bullet-resistant vest. Diller’s partner also fired, striking the suspect, according to Caban. 

Police said the suspect was expected to survive. The suspect’s name wasn’t immediately released.

The fatal shooting marked the NYPD’s first line-of-duty death since Detectives Wilbert Mora and Jason Rivera were shot and killed in January 2022.

"We're here far too many times. This is a difficult moment," Caban said. "There will be plenty of time for anger, grief and for processing pain, but right now, our prayers are with our fallen officer's family, his fellow cops and every member of the New York City Police Department. But most of all, they're with the officer himself."

Diller, a Long Island resident, had been with the NYPD for three years, NYPD Chief of Detectives Joseph Kenny said at the briefing. 

Mayor Eric Adams called the shooting a “senseless act of violence.” 

“The person had a total disregard for the safety of this city,” Adams said. “We lost one of our sons today, and it is extremely painful.”

Police advised passersby to avoid the vicinity of Mott Avenue, between Central Avenue and Smith Place, due to the ongoing investigation.

In a statement released Monday night, Queens Borough President Donovan Richards said it “takes unimaginable courage to protect and serve New York City, knowing there’s a chance you might not make it home to your family at the end of the day.”

“NYPD Officer Jonathan Diller was the personification of that courage, and his heroism in making the ultimate sacrifice in the name of public safety will never be forgotten," Richards said. “May Officer Diller's memory and legacy of selflessness in service of Far Rockaway families, and our entire city, be eternal."

A funeral service is planned for this weekend in Massapequa.

Diller leaves behind a wife and a 1-year-old son.