After seeing the video I have mixed feelings now
When the swat team went inside, probably scared as stuff that he may be armed, when they saw him with a gun they probably knew he was going to shoot so they opened fire before he could. If they warned him to drop any weapons before they entered then that would have probably changed the outcome.
Still, i can't decide who is the "bad guy"