The Minneapolis police officer gunned down in an ambush-style attack was killed while trying to help the suspect, who initially pretended to be a victim in need of help during Thursday’s mass shooting.

The deceased identified as Officer Jamal Mitchell, 28, responded to a reported shooting inside an apartment in the city’s trendy Whittier neighborhood and ran out of his car to aid the shooting victims, Bureau of Criminal Apprehension Superintendent Drew Evans.

But the man he had he was rushing to help wound up being the suspect, who fatally shot the “courageous hero” who was only trying to help.

Mitchell — who had been with the department for “less than two years” — was shot about a block and a half away from where the original call of the mass shooting was reported.

Both officers were transported to Hennepin County Medical Center, where Mitchell died of his injuries.

The second officer suffered non-life-threatening injuries and was released

“Today the City of Minneapolis lost a courageous hero,” Minneapolis Mayor Jacob Frey said in a statement.

“Officer Jamal Mitchell was a father, a son, a fiancé, and a beloved member of our Minneapolis Police Department. Today, he made the ultimate sacrifice to protect and save the lives of others. His life, his service and his name will forever be remembered in the City of Minneapolis.

Officer Jamal Mitchell
Officers Salute The Body Of Officer Jamal Mitchell