Right up to that point everything was kosher ~ the cops were in the right, the resident in the right, and the soon to be ex-husband in the right.
So when he told the cops he was moving out, that made him the bad guy, and the cops would've been able to shoot him then?
It made him something other than a resident. The wife had called the cops. She had a right to speak to them UNIMPEDED.