His only defense is if he can convince the judge/jury that, in his estimation of the situation, the gang was on the verge of advancing on his house which would have resulted in an imminent threat to himself and family and his killing some in self defense. He believed that by firing warning shots safely into the ground, it might dissuade the gang from advancing or, at least, delay them until the police could arrive.