A memorial Mass has been celebrated in the southern French town of Trèbes, in honour of four victims killed by an Islamist gunman on Friday.

Police officer Lt-Col Arnaud Beltrame, who died saving the lives of hostages in a supermarket siege, will also be honoured in a separate national memorial in Paris in coming days.

He has been hailed as a hero after trading places with a captive.

It was the worst jihadist attack under Emmanuel Macron's presidency.

The gunman, 25-year-old Redouane Lakdim, had been on an extremist watchlist and was known to authorities as a petty criminal, but intelligence services had determined he did not post a threat. He was shot dead by police.

Lakdim, who pledged allegiance to Islamic State militants, was said to have demanded the release of Salah Abdeslam, the most important surviving suspect in the 13 November 2015 attacks in Paris, which killed 130 people.

The bishop of Carcassonne and Narbonne celebrated the Mass in the Church of Saint-Etienne in Trèbes.

The attack has shaken the rural town of 5,000 people, and flowers have been laid in front of the Super U shop where the hostage-taking took place.

Khadija, a 52-year-old restaurant owner, said she was shocked by what had occurred. "We thought this only happened in big towns," she told the AFP news agency.

Who were the victims?

Jean Mazières

Before the hostage-taking in Trèbes, Lakdim hijacked a car in nearby Carcassonne, shooting the Portuguese driver and killing passenger Jean Mazières, a retired winemaker in his sixties.

He organised villages fetes and was described as "very jolly" by Marc Rofes, the mayor of Villedubert, where his family lives.

"He loved life, he loved parties... we have lost someone who was liked by everybody," he said of Mr Mazières, who was married and had one child.

The driver of the car remains in a critical condition.

Christian Medvès

After opening fire on a group of police officers out jogging, wounding one, the gunman drove to the Super U in Trèbes, where he killed the shop's chief butcher, Christian Medvès.

An amateur runner and one-time local political candidate, Mr Medvès, 50, was described as having the "joy of life".

"We do not know yet what happened, but knowing Christian, I imagine he would have wanted to intervene," his friend Franck Alberti told local paper La Depeche du Midi.

He was married with two daughters.

Hervé Sosna

Retired builder Herve Sosna, 65, was at the butcher's counter when Lakdim mounted his assault.

The Trèbes resident "had a huge intellectual capacity" and was a capacious reader, especially of poetry, his half-brother told La Dépêche du Midi.

"He never asked for anything, and he was killed, just like that."

Arnaud Beltrame

The brave police officer has emerged as the human face of this attack, and his actions are being seen as a defiant response to the country's would-be attackers - a reminder of the best of France, says BBC Paris correspondent Lucy Williamson.

Although police managed to free hostages from the supermarket, Lakdim had held one woman back as a human shield, and Col Beltrame volunteered to swap himself for her.

As he did so, he left his mobile phone on a table with an open line so that police outside could monitor the situation.

When police heard gunshots, a tactical team stormed the supermarket. The gunman was killed and Col Beltrame, who was 44, was mortally wounded.

He and his wife, Marielle, had been married in a civil ceremony but were planning a church wedding in June. The Catholic priest who was meant to officiate at the ceremony visited Col Beltrame in hospital, where Marielle was keeping vigil, before he died.

World leaders, including UK PM Theresa May, have paid tribute to the officer, who was a highly-regarded member of the Gendarmerie Nationale and was described by President Macron on Saturday as someone who "fought until the end and never gave up".

"He gave his life for strangers. He must have known that he didn't really have a chance. If that doesn't make him a hero, I don't know what would," Col Beltrame's brother, Cedric, told a French radio station on Saturday.

Speaking to the BBC, Col Arnaud's cousin Florence Nicolic described the officer as a person who was "so good at his job".

"Even though we were surprised and shocked when we heard what happened we were not surprised in the sense that that's the thing he would do without hesitation," Ms Nicolic said.

Col Beltrame was deployed to Iraq in 2005 and was later awarded the Cross for Military Valour for his peacekeeping work. On his return to France, Col Beltrame joined the country's Republican Guard and was tasked with protecting the presidential palace.

In 2017, he was named deputy chief of the Gendarmerie Nationale in the French region of Aude.