I’m sure it will be said that the kid pulled the gun because he rightfully feared for his life as the cop was white (if, indeed, he was...story subject to change slightly if the cop was black, but only slightly)
He did rightfully fear for his life or the way he would be forced to live it if he were taken back to prison for being a felon in possession of a gun.