LONDON—The Spanish defense ministry on Tuesday ordered the halt of some Airbus Group NV A400M military airlifter flights after a fatal crash, though the plane maker resumed flights with test aircraft.

“These planes, which are in the production phase and doing test flights, shouldn’t fly until we know what happened to the plane,” Spanish Defense Minister Pedro Morenés said Tuesday during an interview with Spanish radio station Onda Cero. “We need to take precautionary measures,” he said.

...