An Omani national who was training to be a pilot has died in a plane crash in Spain, while on a training mission.