The Daily Star's FREE newsletter is spectacular! Sign up today for the best stories straight to your inbox Sign up today! Thank you for subscribing See our privacy notice Invalid Email

(Image: GETTY/REUTERS)

A plot targeting the capital was revealed to the Swedish government in April last year.

The revelation comes after four died in the Stockholm terror attack this afternoon.

It saw a beer truck ploughing through crowds before smashing into a department store.

Last year’s warning came from an Iraqi official speaking anonymously to broadcaster NBC.

They said there was intelligence that seven or eight Iraqi citizens were planning to hit Stockholm.

"The government sent [this] information to the Swedish government with details about those involved," they said.

"Those ISIS militants are Iraqis, and were able to arrive to Sweden in 2015 with those thousands who emigrate to Europe."

It’s unclear who carried out today’s attack, however ISIS have taken responsibility for similar attacks in the past.

When a jihadi killed five in last month’s Westminster terror attacks, the group quickly took responsibility.

At the time of last year’s warning, the US embassy in Stockholm said an investigation was underway.

(Image: AFP/GETTY)

"Police are actively investigating a potential terror threat against Sweden," the embassy said.

Swedish-born counterterrorism expert Magnus Ranstorp told NBC that Europe’s migrant crisis had helped jihadis.

"There were so many refugees who came in at once, many on false identities, so many were not checked or registered properly," he said.