In December, a police officer on Staten Island survived being hit by friendly fire as officers responding to a domestic dispute call shot and killed a man carrying a knife.
Police identified the officer who died as 42-year-old detective Brian Simonsen, a 19-year veteran of the force.
Sources said the detective confronted the perpetrator and was shot in the chest and the sergeant was shot in the hip.
It was unclear how either officer was injured, or what happened to the suspect. NYPD Police Commissioner James O'Neill says it appears to be "an absolutely tragic case of friendly fire".
The officers opened fire on the suspect, and as they backed out of the store, they were struck by bullets from cops outside, O'Neill said.
Two suspects, whose names have not been released, were apprehended after the shooting.
Our hearts are broken again, because a career criminal put lives in jeopardy. Det.
A 27-year-old suspect in the robbery, who has an extensive arrest history, was injured and is in custody, police said.
"Friendly fire aside, it's because of the actions of the suspect that Simonsen is dead", the police commissioner said.
Gunfire erupted after police responded to reports of an armed robbery at the T-Mobile in Richmond Hill around 6.15pm Tuesday.More news: NASA Mars rover Opportunity finally bites the dust after 15 years
More news: Manchester United 0 - 2 PSG: Player Ratings, Analysis, and More
More news: Watch Elsa ride icy waves in first Frozen 2 trailer
A massive police presence formed at Atlantic Avenue and 120th Street in Richmond Hill, according to videos posted to Citizen app.
Chaos erupted as soon as police pulled up and dozens of shots rang out. The two were on duty and happened to be nearest to the scene when the call came in.
Simonsen, whose 19th anniversary with the department was coming up in March, leaves behind a wife and two children.
"Every day our men and women in uniform risk their lives to protect us, and tonight we are truly heartbroken to lose one of our own", James, a Democrat, said in a tweet.
One officer died, and another was wounded after a police-involved shooting in Queens Tuesday night. A witness said he heard 10 to 11 shots fired before he saw someone - believed to be the sergeant - limping to his auto. He was shot multiple times.
"We lost a very good man, Detective Brian Simonsen", said Mayor Bill de Blasio.
The officers' condition weren't immediately known.
Another witness told CBS2's Valerie Castro that he saw one of the officers wounded in the deadly gun battle.
O'Neil blamed the suspected robber for the deadly incident.
Spectrum News NY1 reported that the detective that was shot and killed "was 1 year away from retirement, @MylesMill reports". "It's insane. The store has been robbed before but nothing as bad as this".