The likely scenario is that he had been fired from previous law enforcement jobs, probably for violent behavior, and this was his last chance. He eventually got violent enough in this job that he became a liability. Perhaps he was already involved in a bad situation. So given his past, it was best to end further liability.
He understood that he was at the absolute end of his law enforcement career.