A police officer was fatally shot in Florida early Sunday, according to news reports.

Charles Kondek, 45, was shot around 3 a.m. in Tarpon Springs, a city 30 miles northwest of Tampa Bay, according to the Associated Press.

A 17-year veteran of the department who worked for many years on the midnight shift, Kondek was a father of five who spent five years working as a New York City police officer, according to Bay News 9. The officer was investigating a noise complaint when he was killed, according to ABC Action News.

On Sunday morning, a post on the Tarpon Springs Police Department’s Facebook page identified Kondek as the victim of the shooting.

“It is with deep regret and great sadness to report the death of Officer Charles “Charlie K” Kondek on 12/21/2014,” the post said. “Our hearts and prayers go out to the Kondek Family and offer our deepest sympathy to them. May Charlie rest in peace and We Will Never Forget him.”

Police said the gunman —  identified as 23-year-old Marco Antonio Parilla Jr. — fled the scene of the shooting and then crashed his vehicle into a pole and another vehicle before he was apprehended, the AP reported. Parilla was arrested and taken to the Pinellas County Jail, Bay News 9 reported. He has been charged with one count of first-degree murder, the local ABC affiliate reported.

When asked by reporters why he killed Kondek, Parilla offered an apology, according to the ABC affiliate. 

“I apologize to the family,” he said. ” That was not my intention.” 

The officer’s death occurred hours after two New York City police officers were killed while sitting in their patrol car in Brooklyn, according to police. Officers Wenjian Liu and Rafael Ramos, shot at point-blank range, were pronounced dead after being transported to a hospital shortly after the shooting. The gunman — identified by police as 28-year-old Ismaaiyl Brinsley — had on his Instagram account declared his intention to kill police officers as retribution for the recent police killings of Michael Brown and Eric Garner, police said. Brinsley took his own life with a gunshot wound to the head within minutes of firing upon the officers, police said.

In the wake of the shootings in New York and Florida, U.S. Sen. Marco Rubio (R-Fla.) issued the following statement:

“Earlier today my wife and I were saddened to hear of the killing of Tarpon Springs police officer Charles Kondek, just hours after the nation was shocked by the horrific murder of two NYPD officers. These killings are stark and somber reminders of the risks our men and women in law enforcement take each and every day to keep us and our families safe.
“Our thoughts and prayers are with the families of the fallen, the men and women of the Tarpon Springs and New York Police Departments, and with the brave men and women of law enforcement across the country who continue their work today undaunted and undeterred. As we should every day, I thank them for the courage and sacrifices they and their families make in the service of our communities.”

[This post has been updated multiple times.]