A commercial plane travelling from Dubai to Israel has been forced to make an emergency landing in Saudi Arabia.