The shooter was dishonorably discharged from the military making it illegal for him to possess a firearm. He broke that law. 

If making gun possession for people with violent histories doesn't work, as they didn't here, what other gun laws might be better?