Ballistics evidence and likely residue on the hands of the deceased will almost surely support the thesis that he shot at the cops. If you point a gun at a cop, it’s not surprising that you get shot by them. (There’s no legal obligation for the police to shoot second.)