(ROCHESTER, N.Y.) — A suspect faces murder charges after a police officer was shot and killed in the line of duty Thursday night in Rochester, New York, officials said.

Officer Anthony Mazurkiewicz, a 29-year veteran of the Rochester Police Department, was with his partner, Officer Sino Seng, an eight-year veteran, when they “were attacked in a cowardly ambush” on Bauman Street, according to Rochester Police Chief David Smith.

At least one male approached the officers and opened fire on them as they were conducting a detail at around 9:15 p.m. local time, according to Lt. Greg Bello of the Rochester Police Department.

Mazurkiewicz was shot at least twice in the upper body, while Seng was shot at least once in the lower body, authorities said. The pair “fell victim to the very violence in our community that we are trying to combat,” Smith said.

Mazurkiewicz was rushed to Strong Hospital, where he was listed in threatening condition late Thursday. During a press conference the next morning, the police chief announced that, “despite heroic efforts,” Mazurkiewicz had died. The officer was a husband and father.

Seng was taken to Rochester General Hospital, where he was treated and released. He is “now recuperating from his injuries at home with his wife and children,” according to Smith.

A 15-year-old girl who was inside her home near the incident was also grazed by one of three bullets that penetrated a wall of her home, officials said.

Kelvin Vickers, 21, was arrested within an hour of the shooting, Captain Frank Umbrino, Commanding Officer of the Rochester Major Crimes Unit, said in an update Friday evening. The suspect was taken into custody without incident.

The suspect allegedly fired 17 rounds into the officers’ vehicle from about 10 to 15 feet away, said Umbrino. The gun recovered following the arrest of Vickers matched the bullets recovered at the scene and in the home of the 15-year-old girl, according to Umbrino.

Vickers has been charged with murder in the second degree, attempted murder in the second degree, assault in the second degree and two counts of criminal possession of a weapon in the second degree, said Smith. He is expected to be arraigned Saturday morning in Rochester city court.

Chief Smith said a number of law enforcement agencies — local, state and federal — responded to assist and are “being utilized to bring whomever is responsible for this heinous act to justice.”

“This is an ongoing investigation and updates will be provided as they become available,” Smith, who was visibly emotional, said at the press conference on Friday morning. “As we speak, the brave men and women of the Rochester Police Department are continuing to protect our community, despite this horrific and shocking loss to our family.”

Rochester Mayor Malik Evans, who also spoke at the press conference, called it a “sad day for our community.”

“I am angry and upset because all too often we are seeing over and over again blatant disregard for life,” Evans said, “be it an old woman on her porch or a 10-year-old girl, braiding her mother’s hair, and now an officer in the line of duty, working to keep our city safe.”

The deadly shooting happened just hours after the mayor declared a local state of emergency due to “a surge” in gun violence. Rochester is situated on Lake Ontario in New York state, about 75 miles northeast of Buffalo.

“The city and our partners in government will dedicate all possible resources to bring an immediate end to this violence and prevent it from expanding further,” Evans said at a press conference earlier Thursday. “We know these shootings are directly tied to a deadly cycle of disputes and retaliations and we will do all we can to disrupt these disputes before they reach critical mass.”

On Friday, the mayor urged anyone with information on the triple shooting to come forward.

“Now is your time to speak up,” he said. “It was Tony Mazurkiewicz, but it can be any of us in this room tomorrow. This is a clarion call for this community to speak up.”

ABC News’ Victoria Arancio contributed to this report.

Copyright © 2022, ABC Audio. All rights reserved.