The flight was heading to Beirut on Thursday when the pilot had to avoid a collision wioth an F-15