Brussels - Police in Belgium and Britain were on Saturday investigating two attempted knife attacks on security forces by assailants who allegedly shouted "Allahu akbar" before being stopped. One attacker in Brussels, who wounded a soldier on Friday in what authorities said was an "attempted terrorist murder", was shot dead, while police in London overpowered a man who drove up to police outside Buckingham Palace in possession of a "four-foot sword".The two incidents come as much of Europe is on high alert following a string of major attacks over the past two years -- most of which have been claimed by, or blamed on, jihadists.Last week, Spain was hit by twin vehicle attacks which left 15 dead, and another two people were killed in a stabbing spree in Finland.Belgian prosecutors said the attacker yelled "Allahu akbar" (God is greatest) during the assault before being shot by a soldier in the centre of city, which has been on high alert since last year's carnage at the airport and on the metro.One of the soldiers was slightly hurt in the attack which Mayor Philippe Close said had been carried out by a "lone individual".Overnight, police raided the suspect's home in Bruges, northwest Belgium, a statement said.Somali-Belgian attackerDuring the attack near the Grand Place in central Brussels at 8:00 pm, the man rushed at several soldiers from behind and struck them with a knife, prompting one of them to open fire. "The man was hit and died shortly afterwards in hospital from his wounds," the prosecutors' statement said. As well as the knife, police found a replica gun and two copies of the Koran on him.The assailant was a Belgian national of Somali origin who was born in 1987, authorities confirmed. He arrived in the country in 2004 and was granted Belgian nationality in 2015. Although not known for any terror-related activities, he had an assault and battery charge on his record from February, the statement said.Less than two hours later, three British police officers were slightly injured while arresting a man in a car outside Buckingham Palace in London.The attacker, who had "repeatedly shouted Allahu akbar", reached for a "four-foot sword" and had to be incapacitated with CS gas, police said on Saturday.The 26-year-old attacker from Luton, a city 30 miles (50 kilometres) north of London, was arrested under the Terrorism Act 2000."Officers from the Counter Terrorism Command are now investigating and searches are being carried out in the Luton area today," the police statement said."We believe the man was acting alone and we are not looking for other suspects at this stage."With much of Europe on edge over the attacks, many of them "low-tech" assaults using knives or vehicles as weapons, thousands of people were expected to take to the streets of Barcelona on Saturday evening in a defiant march under the slogan "No tinc por" -- Catalan for "not afraid".Lone attackerThe Brussels attack happened on a boulevard near the Grand Place central square, one of the "sensitive" areas of the capital where armed soldiers are on patrol because of the terror threat."I heard yelling and straight away two shots," a witness called Yohan told AFP. He did not wish to give his surname.As he approached, he said he saw "a soldier bleeding from his hand and a man on the ground," who had a beard and was wearing a hood.Soldiers have been deployed at railway stations and landmark buildings in the Belgian capital since the November 2015 attacks on Paris when investigators found the assailants had a clear link with Brussels.Patrols has been stepped up since suicide bombers struck Zavantem Airport and Maalbeek metro station in March 2016, killing 32 people and wounding hundreds more.The carnage in Paris, which left 130 people dead and hundreds more wounded, was claimed by the Islamic State group, which also said it was behind the bombings in Brussels.In June, a man who tried to bomb a Brussels Central train station was shot dead by a soldier.In Britain, 35 people have been killed in three attacks in London and Manchester since March.