The flight from the Spanish island landed at its planned destination about 45 minutes behind schedule, having also departed late, but it is not clear what triggered the emergency code