After the cockpit attack on a Dubai-to-Tel Aviv flight, security agencies are scrutinizing the suspect’s training and visa history in Australia.