Eugene Volokh discusses the possibility, in a case coming out of Iowa here. Go have a read. I can’t believe the guy opted for a bench trial. I would imagine juries are a lot more sympathetic to a defendant in a situation like this, especially a police officer, and would be a lot more willing to overlook a duty to retreat.