Members of the NYPD wait outside the hospital where an officer is being treated for a gunshot wound from a robbery of a cell phone store Tuesday February 12, 2019.
WABC
Members of the NYPD wait outside the hospital where an officer is being treated for a gunshot wound from a robbery of a cell phone store Tuesday February 12, 2019.
Now playing
02:14
New York detective killed in friendly fire incident
CNN
Now playing
01:52
US to pass 600,000 Covid-19 deaths
CNN
Now playing
02:47
'Surprise is understatement': Reporter on lawmaker's apology
WREX
Now playing
01:00
Explosive chemical factory fire forces evacuation
UNITED STATES - JUNE 9: Attorney General Merrick Garland arrives for the Senate Appropriations Subcommittee on Commerce, Justice, Science, and Related Agencies hearing on the proposed budget for fiscal year 2022 for the Department of Justice on Wednesday, June 9, 2021. (Photo by Bill Clark/CQ Roll Call via AP Images)
Bill Clark/CQ Roll Call/AP
UNITED STATES - JUNE 9: Attorney General Merrick Garland arrives for the Senate Appropriations Subcommittee on Commerce, Justice, Science, and Related Agencies hearing on the proposed budget for fiscal year 2022 for the Department of Justice on Wednesday, June 9, 2021. (Photo by Bill Clark/CQ Roll Call via AP Images)
Now playing
02:34
Merrick Garland releases statement regarding leak probes
Jason Isley/Scubazoo
Now playing
01:18
Mysterious skin disease plaguing sharks near popular dive spot
Israel's Prime Minister Benjamin Netanyahu attends a special session to vote on a new government at the Knesset in Jerusalem, on June 13, 2021. - A delicate eight-party alliance united by animosity for Netanyahu is poised to take over with right-wing Naftali Bennett as prime minister, if the coalition deal passes today's slated parliamentary vote. (Photo by Emmanuel DUNAND / AFP) (Photo by EMMANUEL DUNAND/AFP via Getty Images)
Emmanuel Dunand/AFP/Getty Images
Israel's Prime Minister Benjamin Netanyahu attends a special session to vote on a new government at the Knesset in Jerusalem, on June 13, 2021. - A delicate eight-party alliance united by animosity for Netanyahu is poised to take over with right-wing Naftali Bennett as prime minister, if the coalition deal passes today's slated parliamentary vote. (Photo by Emmanuel DUNAND / AFP) (Photo by EMMANUEL DUNAND/AFP via Getty Images)
Now playing
05:14
Benjamin Netanyahu forced out as Israeli prime minister
screengrab biden g7
pool
screengrab biden g7
Now playing
03:24
Biden ramps up tougher rhetoric against China at G7
Now playing
02:38
CNN's Barbara Starr: No idea why the DOJ snuck into my life
Now playing
08:21
'Very offensive': Mom of US Marine jailed in Russia reacts to Putin's comment
Now playing
02:17
Record heatwave continues to build in the West
View of the construction site of the Taishan Nuclear Power Plant in Taishan city, south China's Guangdong province, 12 September 2012.
Zhou huadong/Imaginechina/AP
View of the construction site of the Taishan Nuclear Power Plant in Taishan city, south China's Guangdong province, 12 September 2012.
Now playing
03:30
Concerns over possible leak at nuclear plant in southern China
GRUENHEIDE, GERMANY - SEPTEMBER 03: Tesla head Elon Musk talks to the press as he arrives to to have a look at the construction site of the new Tesla Gigafactory near Berlin on September 03, 2020 near Gruenheide, Germany. Musk is currently in Germany where he met with vaccine maker CureVac on Tuesday, with which Tesla has a cooperation to build devices for producing RNA vaccines, as well as German Economy Minister Peter Altmaier yesterday. (Photo by Maja Hitij/Getty Images)
Maja Hitij/Getty Images
GRUENHEIDE, GERMANY - SEPTEMBER 03: Tesla head Elon Musk talks to the press as he arrives to to have a look at the construction site of the new Tesla Gigafactory near Berlin on September 03, 2020 near Gruenheide, Germany. Musk is currently in Germany where he met with vaccine maker CureVac on Tuesday, with which Tesla has a cooperation to build devices for producing RNA vaccines, as well as German Economy Minister Peter Altmaier yesterday. (Photo by Maja Hitij/Getty Images)
Now playing
02:50
Bitcoin surges as Elon Musk hints Tesla could accept the cryptocurrency again
Metro Video Services, LLC. -- Austin Division
Now playing
02:42
Number of people killed by guns in US continues to rise
WINDSOR, ENGLAND - JUNE 13: Queen Elizabeth II (C) with US President Joe Biden and First Lady Jill Biden in the Grand Corridor during their visit to Windsor Castle on June 13, 2021 in Windsor, England. Queen Elizabeth II hosts US President, Joe Biden and First Lady Dr Jill Biden at Windsor Castle. The President arrived from Cornwall where he attended the G7 Leader's Summit and will travel on to Brussels for a meeting of NATO Allies and later in the week he will meet President of Russia, Vladimir Putin. (Photo by Steve Parsons - WPA Pool/Getty Images)
Steve Parsons/WPA Pool/Getty Images
WINDSOR, ENGLAND - JUNE 13: Queen Elizabeth II (C) with US President Joe Biden and First Lady Jill Biden in the Grand Corridor during their visit to Windsor Castle on June 13, 2021 in Windsor, England. Queen Elizabeth II hosts US President, Joe Biden and First Lady Dr Jill Biden at Windsor Castle. The President arrived from Cornwall where he attended the G7 Leader's Summit and will travel on to Brussels for a meeting of NATO Allies and later in the week he will meet President of Russia, Vladimir Putin. (Photo by Steve Parsons - WPA Pool/Getty Images)
Now playing
05:01
Queen Elizabeth II greets the Bidens at Windsor Castle
Getty Images
Now playing
00:49
Actor Ned Beatty of 'Deliverance' and 'Superman' dies
World Food Programme
Now playing
01:36
UN report: 350K facing starvation in conflict-hit Ethiopia
CNN —  

A New York Police Department detective was shot and killed Tuesday, and a sergeant was hit in the leg, after they responded to a reported robbery at a cell phone store in the borough of Queens, city officials said.

It was an apparent incident of friendly fire, Police Commissioner James P. O’Neill said. As the two officers went into the store, a suspect came out of a back room with a replica handgun. The detective and sergeant fired, and as they were leaving the store, the detective was apparently shot by uniformed officers.

“Once again our hearts are broken in the NYPD,” O’Neill said.

Brian Simonsen, 42, and a 19-year veteran of the department, was killed, police said.

Detective Brian Simonsen was shot and killed while responding to a reported robbery at a cell phone store in Queens, New York.
Twitter/NYPDnews
Detective Brian Simonsen was shot and killed while responding to a reported robbery at a cell phone store in Queens, New York.

O’Neill and Mayor Bill de Blasio met with Simonsen’s family at a hospital.

“It was heartbreaking to see,” de Blasio said. “The shock that they are feeling was so painful to see.”

“Make no mistake about it, friendly fire aside, it’s because of the actions of the suspect that Detective Simonsen is dead,” O’Neill added.

The suspect, described by O’Neill as a 27-year-old career criminal, was shot multiple times and is listed as stable, O’Neill said.

O’Neill said a sergeant, who has been on the force for eight and a half years, was also wounded and is in stable condition.

Audio recorded from police radio during the incident suggests a chaotic scene. In a span of seconds, numerous gunshots can be heard as several officers call in and yell “Shots fired!”

The injured sergeant eventually radios in, “Be advised, I’m shot,” before relaying his location.

Before Tuesday, eight US police officers had been killed by firearms while on duty in 2019, according to the National Law Enforcement Officers Memorial Fund website.

CNN’s Dave Alsup contributed to this report.