Islamic State was responsible for an attack outside Britain's parliament which left four people dead, the group's Amaq news agency said today.

"The perpetrator of the attacks yesterday in front of the British parliament in London is an Islamic State soldier and he carried out the operation in response to calls to target citizens of the coalition," the Amaq statement said. 

The attacker who killed three people near the British parliament before being shot dead, was British-born and was once investigated by MI5 intelligence agents over concerns about violent extremism, Prime Minister Theresa May said earlier.

Police arrested eight people at six locations in London and Birmingham in the investigation into the lone-wolf attack that May said was inspired by a warped Islamist ideology. Forty people were injured and 29 remain in hospital, seven in critical condition.

The assailant sped across Westminster Bridge in a car, ploughing into pedestrians along the way, then ran through the gates of the nearby parliament building and fatally stabbed an unarmed policeman before being shot dead. 

"What I can confirm is that the man was British-born and that some years ago he was once investigated by MI5 in relation to concerns about violent extremism," May said in a statement to parliament.

"He was a peripheral figure...He was not part of the current intelligence picture. There was no prior intelligence of his intent or of the plot," she said, adding that his identity would be revealed when the investigation allowed.

Westminster Bridge and the area just around parliament were still cordoned off this morning and a line of forensic investigators in light blue overalls were on their hands and knees, examining the scene where the attacker was shot.

The dead were two members of the public, the stabbed policeman and the attacker.

It was the worst such attack in Britain since 2005, when 52 people were killed by militant islamist suicide bombers on London's public transport system. Police had given the death toll as five but revised it down to four on Thursday.

The casualties included 12 Britons, three French children, two Romanians, four South Koreans, one German, one Pole, one Chinese, one American and two Greeks, May said.

"We meet here, in the oldest of all parliaments, because we know that democracy and the values it entails will always prevail," she said.

"A terrorist came to the place where people of all nationalities and cultures gather what it means to be free and he took out his rage indiscriminately against innocent men, women and children," said May.

A minute's silence was held in parliament and in front of police headquarters at New Scotland Yard at 0933 GMT, in honour of the victims -- 933 was the shoulder number on the uniform of Keith Palmer, the policeman who was stabbed to death.

"THINGS FROM DAILY LIFE"

Some have been shocked that the attacker was able to cause such mayhem in the heart of the capital equipped with nothing more sophisticated than a hired car and a knife.

"The police and agencies that we rely on for our security have forestalled a large number of these attacks in recent years, over a dozen last year," said defence minister Michael Fallon.

"This kind of attack, this lone-wolf attack, using things from daily life, a vehicle, a knife, are much more difficult to forestall," he told the BBC.

Three French high-school students aged 15 or 16, who were on a school trip to London with fellow students from Brittany, were among the injured.

French Foreign Minister Jean-Marc Ayrault, who travelled to London to bring a message of solidarity, met some of the other students who were on the school trip and their families at a hotel near the hospital where the injured were being treated.

He told reporters the lives of the three youngsters were not in danger. Ayrault later attended the session in parliament where May spoke. France has been hit by repeated deadly Islamist attacks over the past two years.

A vigil is planned in London's Trafalgar Square at 6pm. 

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.