As much as the cops have been militarized - it was certainly a bit trigger-happy. However he did 2 massive errors.
He opened the door with the gun in his hand, then even walked out. He reacted a bit late by trying to de-escalate the situation, but even that he did the wrong way. Instead of openly putting down the gun slowly, so that they can see it he stupidly tried to hide the weapon behind him.
If you watch the footage at lower speed you can easily see that he walks out like Brad Pitt in the movie California where he plays a low-class serial killer. He has the same walk, going out in some kind of combat stance in his underwear while holding his gun on the side. Seriously - his very stance and behavior is by default menacing even if the cops over-reacted. He went into a completely different pose and stupidly tried to put the gun down to the back of him.
Self-defense is all good and well, but who did he expect would knock that way at night loudly and call themselves loudly 'Phoenix Police'? Chances are that he was a bit drunk or on drugs and did not hear who they were. He should have shouted out who they are first, before walking out with a drawn gun. Who else would it be who would knock at night? Antifa, BLM rioters? They would attack everyone. If he expected some criminal, then he absolutely should first check to not confuse that criminal with 2 cops who are already standing there and expecting the worst.
But the point of the thread remains - if that guy was black, then this would be center news and riots would erupt in Phoenix by now. And this again is no clear-cut case of police brutality given his initial unfortunate behavior. There are times when walking out in such a way will protect you from Antifa or BLM rioters, but doing it with cops is not advisable.