Ett Flydubai-flyg från Dubai till Tel Aviv genomgick en snabb nedstigning efter att en andrepilot attackerat kaptenen med en nödyxa.