An alleged attempt to hijack an Australian passenger jet and fly it overseas has been foiled, with a man arrested and a major investigation under way.