FBI investigators said Friday that the gunman who went on a rampage inside Los Angeles International Airport on July 4 was an Egyptian immigrant living in Southern California who had no criminal history or known ties to terrorist groups but apparently planned the attack in advance.