Flydubai attacker was dismissed from previous job for extremist views