Gunman Is Killed at Base in Qatar Used by the U.S.