Gunman failed background check for gun