You cannot commit a criminal act under color of law. The presumption of moral behavior is not excusable by bad policy. The Nuremberg Trials proved it. Cops can’t kill just because they feel threatened, anymore than a former Marine can kill because he feels threatened living in a bad neighborhood.
They did it. And up until this point in time have gotten away with it.