France’s prime minister has said the country is moving to the maximum “emergency” alert level after the killing of three people at a church in the southern city of Nice.

A man armed with a knife attacked two women and a man at the Notre Dame Basilica on Thursday morning before he was shot by police.

As he lay wounded, Nice’s mayor said the attacker repeated “Allah Akbar!” over and over. French authorities have opened a terrorism investigation.

Prime Minister Jean Castex told French lawmakers that the country would raise its alert level to “emergency” in response to the attack.

The suspect was believed to be acting alone and police are not searching for other attackers, an official said.

Images on French media showed the neighbourhood locked down and surrounded by police and emergency vehicles. The killings took place less than half a mile from the site in 2016 where another attacker drive a truck into a Bastille Day crowd, killing dozens.

Sounds of explosions could be heard as sappers exploded suspicious objects.

Later in the morning in the southern city of Avignon an armed man was shot dead by police after he refused to drop his weapon and a Taser shot failed to stop him, a police official said.

Swindon Advertiser:

And a Saudi state-run news agency said a man stabbed a guard at the French consulate in Jiddah, wounding the guard before he was arrested. It was not immediately clear if the incidents were linked to the attack in Nice.

There have been increased tensions in France over caricatures of the Muslim Prophet Mohammed published by satirical weekly Charlie Hebdo, and after two other recent attacks in the country with links to the cartoons.

Less than two weeks ago, an attacker decapitated a French middle school teacher who showed caricatures of the Prophet Mohammed for a class on free speech. Those caricatures were published by Charlie Hebdo and cited by the men who gunned down the newspaper’s editorial meeting in 2015.

In September, a man who had sought asylum in France attacked bystanders outside Charlie Hebdo’s former offices with a butcher knife.

Swindon Advertiser: French police and firemen officers next to Notre Dame church after a knife attack (Alexis Gilli/AP)French police and firemen officers next to Notre Dame church after a knife attack (Alexis Gilli/AP)

The lower house of parliament suspended a debate on new virus restrictions and held a moment of silence on Thursday for the victims.

Prime minister Mr Castex rushed from the hall to head to a crisis centre overseeing the aftermath of the attack.

Nice’s mayor Christian Estrosi said the attacker shouted “Allahu akbar!” repeatedly as police apprehended him and that “the meaning of his gesture left no doubt”.

Speaking to reporters in Nice, Mr Estrosi said two people were killed inside the church and that the church caretaker was among those attacked.

He appealed to the citizens of Nice to remain united.