A Spanish military plane crashed into the sea off the country’s southeastern coast early on Monday and the pilot appeared to have ejected from the aircraft, the air force said.