He was fired for making mistakes that the city's police chief said caused a deadly confrontation that put him and other officers in danger.