I think the article is confusing on that point.
But, seems he played by their rules and they screwed up. Errors by the government should ALWAYS favor citizens. Period.
He committed a violent crime. He didn’t steal a car or a lawn ornament. They held a gun to someone’s head.