Flights were diverted and no one was put in danger, the Australian defence minister said.