Having a gun on your person while opening the door is not brandishing. Also, there are countless other examples of people getting shot by the police simply for possessing a weapon.
There is also zero reason to believe that this man was aware the people at his house were police.