US president Donald Trump described the terror attack at Westminster as "big news" as world leaders reacted with shock to the incident.
Mr Trump was speaking after having an update on the situation.
The US State Department said it was ready to assist the UK authorities in any way.
According to US network NBC, Mr Trump told reporters: "I was just getting an update on London.
"Some big news having to do with London just happened."
State Department spokesman Mark Toner said: "We are following the concerning situation outside the UK Parliament.
"Our hearts go out to those affected. We stand ready to assist in any way the UK authorities would find helpful.
"The safety and security of US citizens overseas is one of our priorities. Our embassy in London is monitoring the situation closely."
Gibraltar's chief minister Fabian Picardo said: "Shocked at attack on London. Yesterday I spent the day at Westminster. Luckily not today.
"London's Parliament is the mother of democracy!"
Several EU leaders sent messages of concern and sympathy on social media.
Belgian Prime Minister Charles Michel, who earlier in the day had taken part in commemorations to mark the first anniversary of a terror attack in Brussels, said: "Our condolences are with those who mourn and all who are affected in London. Belgium stands with UK in fight against terror."
Danish PM Lars Lokke Rasmussen said: "Horrified by the images from London. My thoughts are with our British friends."
Lithuanian President Dalia Grybauskaite said: "Terrorism - weapon of cowards. Strongly condemn gruesome terrorist attack at the heart of Westminster."
The European Commission's chief Brexit negotiator Michel Barnier said: "My thoughts are with the people of London."