Since they had good knowledge he was going to procur guns, they set up the sting.
Would you rather have it like that movie Star Chamber, where retired and active law enforcement meet in secret to vote on target assassinations of perps who beat the system on technicalities?
Usually, sting operations are conducted to reach the highest echelons of the criminal ring...aren't they?
I do agree that had the sting not been conducted these guys would be alive. I also think they should have had backup security at an arm's length if they thought it would be that dangerous.
What if the undercover operatives in the police bureau were contacted say....by an estranged girlfriend/wife who told them that this guy was dealing in weapons purchases and she was sick and tired of reading and viewing reports about young kids being shot and killed on the street
They investigate the crimes committed, use her testimony to find more evidence and seek a conviction in court after arresting the suspects on suspicion of the crime.