The UAE attorney general has said the alleged hijacker of a flydubai plane planned to crash into Israel's Ben Gurion airport.