The black man got shot because he attacked a man who had a gun.
It's really not complicated.
Three guys in two trucks chased the man down, one guy jumped out with a firearm in his path in such a manner as to indicate he was willing to use deadly force.
Both parties reacted without much time for forethought.