Yelling that he wanted to kill and die for Allah, a suspected Islamic extremist attacked a French soldier Saturday morning at Paris's Orly Airport and wrested away her assault rifle, a French prosecutor said. Two colleagues on her patrol shot and killed the man before he could fire the military-grade weapon in the busy airport terminal.

The attack forced the airport's terminals to shut down and evacuate, sent passengers and workers fleeing in panic and trapped hundreds of others aboard flights that had just landed. It was the violent climax of what authorities described as a 90-minute spree of destructive criminality across the French capital by the suspect, identified as Ziyed Ben Belgacem.

The attack further rattled France, which remains under a state of emergency after attacks over the past two years that have killed 235 people.

Orly, Paris's second-biggest airport behind Charles de Gaulle, has both domestic and international flights and the 8:30 a.m. assault brought its operations to a screeching halt.

FRANCE-SHOOTING/

Police arrive at Orly airport's southern terminal after the shooting. (Christian Hartmann/Reuters)

Stopped first by police in Paris's northern suburbs early Saturday morning for driving too fast and without lights in a small car, the 39-year-old Frenchman opened fire with a revolver loaded with bird shot, injuring an officer in the face, authorities said.

He then fled by car to a bar that he frequented regularly and where he had already stopped a few hours earlier and again opened fire. No one was injured.

Wrestled soldier for rifle

Finally, in another car stolen at gunpoint, he parked at Orly. A few minutes later, he hurled himself at three soldiers on patrol in its South Terminal, throwing a bag with a gas can at the floor and wielding his 9 mm revolver, said Paris prosecutor Francois Molins.

"With a pistol in his right hand and a bag over his shoulder, he grabbed (the soldier) with his left arm, made her move backward by three to four metres, positioning her as a shield, and pointed his revolver at her forehead," Molins said.

According to soldiers, the attacker yelled: "Put down your weapons! Put your hands on your head! I am here to die for Allah. Whatever happens, there will be deaths," Molins said.

In a struggle, the attacker managed to free the soldier's Famas assault rifle and sling it over his shoulder. Molins said video surveillance footage appeared to show that Belgacem was "determined to see the process through to the end."

"Everything suggests that he wanted to take the Famas so there would be deaths and to shoot people," he said.

FRANCE-SHOOTING/

Police stop people from getting closer to the southern terminal. (Benoit Tessier/Reuters)

In between the moments when he ducked behind his hostage, the two other soldiers fired three bursts, eight rounds in all, that killed the attacker, Molins said.

"Her two comrades thought it was necessary — and they were right — to open fire to protect her and especially to protect all the people who were around," said French Defence Minister Jean-Yves Le Drian.

Le Drian had said the soldier kept hold of her weapon. Molins said while she did wrestle it back from Belgacem at one point, he managed to snatch it off her in the end.

Chaos at Orly

Witnesses described panicked bystanders fleeing, flights halting, traffic chaos and planes under lockdowns. Traffic was jammed near the airport and people wheeled suitcases down the road.

"We'd already registered our bags when we saw a soldier pointing his gun at the attacker who was holding another soldier hostage," said Pascal Menniti, who was flying to the Dominican Republic.

Authorities said at least 3,000 people were evacuated from the airport. Hundreds of passengers also were confined for several hours aboard 13 flights that were blocked in landing areas, and 15 other flights were diverted to Charles de Gaulle Airport.

APTOPIX France Airport Shooting

Travellers hug outside the airport south of Paris after a man was shot to death when he tried to seize the weapon of a soldier on guard in the southern terminal. (Kamil Zihnioglu/Associated Press)

Passengers were allowed off their blocked planes around noon local time, once a search of the airport was complete, but the airport's South Terminal did not reopen until late afternoon, authorities said.

Despite the transportation chaos, French authorities stressed that security planning — reinforced across the country in the wake of repeated attacks — worked well.

The soldier was "psychologically shocked" but unhurt by the "rapid and violent" assault, said Col. Benoit Brulon, a spokesman for the military force that patrols public sites in France.

Anti-terror police investigating

The attacker's motives were unknown but the anti-terror section of the Paris prosecutors' office immediately took over the investigation.

His father and brother were detained by police for questioning later Saturday, which is standard operating procedure. Molins said a cousin of Belgacem's also turned himself in for questioning, having spent time with the attacker in the bar the previous night.

A search of Belgacem's residence found cocaine and a machete, Molins said. The father and brother told police that Belgacem phoned them Saturday morning, minutes after shooting at the police traffic patrol, to say that he'd "made a mistake," Molins said.

Par7986734

Orly is Paris' second-biggest airport behind Charles de Gaulle, serving domestic and international flights, notably to destinations in Europe and Africa. (Stephane de Sakutin/AFP/Getty Images)

The prosecutors' office said Belgacem had a record of robbery and drug offences. Molins said he was out on bail, banned from leaving France and obliged to report regularly to police, having been handed preliminary charges for robberies in 2016.

Molins said Belgacem was flagged as having been radicalized during a spell in detention from 2011-12. His house was among scores searched in November 2015 in the immediate aftermath of suicide bomb-and-gun attacks that killed 130 people in Paris.

French President François Hollande said investigators will determine whether the attacker "had a terrorist plot behind him." But he ruled out any link between the attack and the two-round French presidential election in April and May, noting that France has been battling extremist threats for years.

The military patrol at Orly was part of the Sentinelle force installed around France to protect sensitive sites after a string of deadly Islamic extremist attacks. Saturday was at least the fourth time that Sentinelle soldiers have been targeted since the force, which includes 7,500 soldiers, was created in 2015.

Saturday's attack comes after a similar one last month at the Louvre Museum in Paris in which an Egyptian man attacked soldiers guarding the site. He was shot and wounded and taken into custody.

Last words of Paris attacker: I am here to die for Allah2:19

With files from CBC News and Reuters