Australia is investigating the FlyDubai co-pilot's time in the country after he was detained over an alleged attempt to seize an Israel-bound plane.