Rafik Benbagdad/La Dépêche Du Midi
Now playing
02:07
Police officer wounded in France attack dies
French hooded police officers cordon off the area after a knife attack Thursday, Aug. 23, 2018 in Trappes, west of Paris. A man flagged by French authorities as a suspected radical killed his mother and sister and seriously injured another woman in a knife attack Thursday that was quickly claimed by the Islamic State group. (AP Photo/Michel Euler)
Michel Euler/AP
French hooded police officers cordon off the area after a knife attack Thursday, Aug. 23, 2018 in Trappes, west of Paris. A man flagged by French authorities as a suspected radical killed his mother and sister and seriously injured another woman in a knife attack Thursday that was quickly claimed by the Islamic State group. (AP Photo/Michel Euler)
Now playing
00:24
Two dead and one injured in knife attack
AFP/Getty Images
Now playing
02:23
Terror attack rocks Paris ahead of election
Police officers take position outside the Louvre museum in Paris,Friday, Feb. 3, 2017. Paris police say a soldier has opened fire outside the Louvre Museum after he was attacked by someone, and the area is being evacuated. (AP Photo/Thibault Camus)
Thibault Camus/AP
Police officers take position outside the Louvre museum in Paris,Friday, Feb. 3, 2017. Paris police say a soldier has opened fire outside the Louvre Museum after he was attacked by someone, and the area is being evacuated. (AP Photo/Thibault Camus)
Now playing
01:20
Louvre machete attack puts Paris on edge
La vie à Trèbes/From Facebook
Now playing
01:59
French media: Hostage-taker killed by police
A picture shows the debris of an explosion after French anti-terrorist police (RAID) raided an apartment, where suspects believed to be involved in plotting an attack were arrested, in an apartment building in Clapiers, near Montpellier, southern France, on February 10, 2017. Four people including a 16-year-old girl were arrested on February 10 by anti-terrorist police in Montpellier on suspicion of preparing an attack, a police source said. The other suspects were aged 20, 26 and 33, according to the source. The four were arrested after buying acetone, a highly flammable liquid that can be used to make bombs. France remains on high alert after a wave of attacks which began two years ago that has claimed more than 200 lives. / AFP / SYLVAIN THOMAS (Photo credit should read SYLVAIN THOMAS/AFP/Getty Images)
SYLVAIN THOMAS/AFP/Getty Images
A picture shows the debris of an explosion after French anti-terrorist police (RAID) raided an apartment, where suspects believed to be involved in plotting an attack were arrested, in an apartment building in Clapiers, near Montpellier, southern France, on February 10, 2017. Four people including a 16-year-old girl were arrested on February 10 by anti-terrorist police in Montpellier on suspicion of preparing an attack, a police source said. The other suspects were aged 20, 26 and 33, according to the source. The four were arrested after buying acetone, a highly flammable liquid that can be used to make bombs. France remains on high alert after a wave of attacks which began two years ago that has claimed more than 200 lives. / AFP / SYLVAIN THOMAS (Photo credit should read SYLVAIN THOMAS/AFP/Getty Images)
Now playing
01:29
France foils 'imminent' terror attack
Police officers stand on guard behind the church of Saint-Etienne-du-Rouvray on July 26, 2016, following an attack by two knife-wielding men.
The Islamic State group said on July 26 that the two assailants who stormed a church in France and killed an elderly priest were its "soldiers,". They stormed the church during morning mass, taking the five people inside hostage and slitting the throat of its priest Jacques Hemel, who was in his eighties. The attackers were killed by police after they emerged from the church when it was surrounded by France's anti-gang brigade, the BRI, which specialises in kidnappings.
 / AFP PHOTO / CHARLY TRIBALLEAUCHARLY TRIBALLEAU/AFP/Getty Images
CHARLY TRIBALLEAU/AFP/AFP/Getty Images
Police officers stand on guard behind the church of Saint-Etienne-du-Rouvray on July 26, 2016, following an attack by two knife-wielding men. The Islamic State group said on July 26 that the two assailants who stormed a church in France and killed an elderly priest were its "soldiers,". They stormed the church during morning mass, taking the five people inside hostage and slitting the throat of its priest Jacques Hemel, who was in his eighties. The attackers were killed by police after they emerged from the church when it was surrounded by France's anti-gang brigade, the BRI, which specialises in kidnappings. / AFP PHOTO / CHARLY TRIBALLEAUCHARLY TRIBALLEAU/AFP/Getty Images
Now playing
07:02
Why is France failing to prevent terror attacks?
french riviera jihadi recruitment pkg_00014217.jpg
french riviera jihadi recruitment pkg_00014217.jpg
Now playing
03:23
Recruitment on the Riviera: France's super jihadi
france terror alert maximum level bittermann lok_00001701.jpg
Getty Images
france terror alert maximum level bittermann lok_00001701.jpg
Now playing
01:29
France terror threat set at maximum level
france terror cell arrest isis bittermann lklv_00002606.jpg
Getty Images
france terror cell arrest isis bittermann lklv_00002606.jpg
Now playing
01:12
France reckons with burgeoning terror threat
france notre dame latest bittermann lok_00000808.jpg
Reuters
france notre dame latest bittermann lok_00000808.jpg
Now playing
01:29
Did terrorists plan to attack the Notre Dame cathedral?
This graphic, featuring suspected ISIS operative Abdel Haddadi, shows his global network.
investigation documents obtained by CNN
This graphic, featuring suspected ISIS operative Abdel Haddadi, shows his global network.
Now playing
01:56
European officials: 30 to 40 ISIS suspects at large
This graphic, featuring suspected ISIS operative Abdel Haddadi, shows his global network.
investigation documents obtained by CNN
This graphic, featuring suspected ISIS operative Abdel Haddadi, shows his global network.
Now playing
08:26
ISIS planned for more operatives during Paris attacks
A woman mourns in front of the house of Father Jacques Hamel on July 27, 2016 in Saint-Etienne-du-Rouvray, where the priest was killed the day before in the latest of a string of attacks against Western targets claimed by or blamed on the Islamic State jihadist group.
CHARLY TRIBALLEAU/AFP/AFP/Getty Images
A woman mourns in front of the house of Father Jacques Hamel on July 27, 2016 in Saint-Etienne-du-Rouvray, where the priest was killed the day before in the latest of a string of attacks against Western targets claimed by or blamed on the Islamic State jihadist group.
Now playing
02:02
Source: French church attacker was under house arrest
hollande we must stand together bfmtv sot_00002426.jpg
BFMTV
hollande we must stand together bfmtv sot_00002426.jpg
Now playing
01:58
Hollande: We must stand together
(CNN) —  

A police officer who swapped places with a female hostage during an attack by an ISIS supporter on a supermarket in southern France has died of his wounds, French authorities said.

Lt. Col. Arnaud Beltrame, 45, was shot in the neck Friday after offering to take the place of a woman during a gunman’s assault on the Super U supermarket in Trèbes.

Police found two unexploded homemade bombs, a 7.65 mm pistol and a hunting knife when they searched the market after the attack, a French judicial source told CNN.

Lt. Col. Arnaud Beltrame, here in 2013, was hailed as a hero by authorities.
Ouest France/AP
Lt. Col. Arnaud Beltrame, here in 2013, was hailed as a hero by authorities.

The attacker, Radouane Lakdim, 26, a Moroccan-born French national, was a petty criminal already on the radar of French police for his links to radical Salafist networks, authorities said.

When he burst into the supermarket Friday, he shouted he was a soldier from ISIS, witnesses said, before opening fire and killing a worker and a customer. He was shot dead by police on the scene.

“Lt. Col. Arnaud Beltrame died in the service of the nation to which he had already contributed so much,” French President Emmanuel Macron said in a statement. “By giving his life to end the murderous escapade of a jihadist terrorist, he died a hero.”

Interior Minister Gérard Collomb announced the officer’s death Saturday, which raised the number of victims in the gunman’s rampage to four.

The attacker killed two other people and wounded more than a dozen others in the supermarket raid. Before then, he had killed another person Friday while stealing a car.

“France will never forget his heroism, his bravery, his sacrifice,” Collomb said on Twitter.

He ‘gave his life for the freedom of the hostages’

As Friday’s attack was underway, Beltrame offered to exchange himself for one of the female hostages held inside the Super U supermarket, Collomb said. He was shot while entering the market.

Beltrame had left his phone on so police could hear his interactions with the gunman, Collomb said.

As soon as they heard gunfire, police went in and killed the gunman.

Police respond to the hostage situation Friday in the southern French town of Trèbes.
Rafik Benbagdad/La Dépêche Du Midi
Police respond to the hostage situation Friday in the southern French town of Trèbes.

Beltrame died Friday night, police said.

“I bow to the courage, the sense of sacrifice and the exemplary nature of this officer who gave his life for the freedom of the hostages,” the French National Police said on Twitter.

Illustrious career as officer

Married with no children, Beltrame had served in the French military police and received a number of awards for bravery.

He served in Iraq in 2005, and was given an award for bravery in 2007, Macron said. For four years, he was a commander in the Republican Guard, which provides security at the Élysée Palace, home of the French president.

In 2012, he was knighted in France’s prestigious Legion of Honor. Beltrame also was secretary-general in the Ecology Ministry for four years.

Last year Beltrame was appointed deputy commander of the anti-terror police in the Aude region.

According to the newspaper La Dépêche du Midi, Beltrame led a simulated terror attack in December on a supermarket for training purposes, similar to the one Friday in which he lost his life.

“His leadership skills, his willingness, his unfailing commitment were appreciated by everyone, especially in the development of counterterrorism capacity in the Aude police force,” Macron said.

How the rampage unfolded

Before the supermarket, the gunman stole a car, killing one person in the vehicle and wounding another, the interior minister said.

The gunman then shot at four National Police officers who were jogging in Carcassonne. The driver tried to run the officers down. One of them was wounded, but he was not in serious condition.

French police block access to Trèbes as they respond to the hostage situation Friday.
ERIC CABANIS/AFP/Getty Images
French police block access to Trèbes as they respond to the hostage situation Friday.

“People were absolutely calm before and never thought that there could be an attack in a town like this,” Collomb told reporters, adding that the risk of terrorism in France remained “very high.”

Two others detained

On Friday, police detained a woman who was “very close” to the gunman Lakdim and “shared his life,” prosecutor François Molins said.

A second person was arrested Saturday, the Paris prosecutor’s office told CNN. The unidentified male, born in 2000, was described as a friend of Lakdim’s.

Macron: ‘We’ve paid the price’

More than 230 people have died in a series of Islamist-inspired terror attacks in France over the past three years, including 17 in a mass shooting at the satirical magazine Charlie Hebdo in Paris in January 2015 and 130 in the Paris attacks the following November. In 2016, 86 people died in Nice when a truck rammed into crowds during Bastille Day celebrations. There have also been a string of “lone wolf” ISIS-inspired attacks, including the killings of a priest and rabbi.

France remained under a state of emergency for about two years after the Paris attacks. It was lifted late last year.

“Our country has suffered an Islamist terrorist attack,” Macron told reporters Friday. “We’ve paid the price of the danger of the terrorist threat in blood for several years.”

Macron said the investigation will answer several questions – when and how the gunman was radicalized, and where he got a weapon.

The ISIS-affiliated Amaq News Agency described the gunman Friday as a “soldier” of the militant group but offered no evidence ISIS had any contact with him.

“This attack has been claimed by ISIS, and it is currently being analyzed,” Macron said.

President Donald Trump condemned the French attack in a tweet Saturday. “Our thoughts and prayers are with the victims of the horrible attack in France yesterday, and we grieve the nation’s loss,” the US leader said.

CNN’s Emi Jozuka, Marilia Brocchetto and Joe Sterling contributed to this report.