"In December 2016, he was informed by the migration agency that he had four weeks to leave the country".
US President Donald Trump and Swedish Prime Minister Stefan Lofven during a phone call agreed to strengthen their partnership in the war on terror in the wake of the recent attack in Sweden, the White House said in a press release on Monday.
He had been denied residency in Sweden and had expressed sympathy for so-called Islamic State, according to police.
In February, Trump surprised Swedes when he suggested Sweden could be the next European country to suffer the kind of extremist attacks that have devastated France, Belgium and Germany.
Rakhmat "Akilov confesses to a terrorist crime and accepts his custody detention", his lawyer Johan Eriksson told a court custody hearing in Stockholm.
"Police have arrested a person and we have appointed a public defender", Helga Hullmann, judge at the Stockholm District Court said.
People were killed when a truck crashed into the department store Ahlens on Drottninggatan, in central Stockholm, on Friday.
Over the weekend, Swedish police arrested a suspect in the attack-a 39-year-old man from Uzbekistan who had reportedly been facing deportation from Sweden.
Akilov, who was known to intelligence services, had applied for residency in Sweden in 2014 but his application was rejected in December previous year, according to police.
Security was tight at for Tuesday's court hearing.
The four people killed in the attack were two Swedes - one woman and an 11-year-old girl - a British man, and a Belgian woman.
"We will never surrender to terror", Lofven said in his speech outside Stockholm's city hall, as flags flew at half mast across the capital and church bells chimed while shoppers and tourists thronged the city centre. "We will get through this together", he said.
He was detained by police hours later and arrested early Saturday.
A police source also confirmed Akilov had owned up to the attack.
Many people thanked and hugged police officers guarding the scene, some offering them flowers, for their widely-praised response to the attack.
April 11 (ANI): The suspect of the deadly Stockholm truck attack in which four persons were killed, has confessed of committing a "terrorist crime" on Tuesday, local media reports said.
Swedish police said Sunday they had received roughly 12,500 referrals from the Swedish Migration Board of people who, like the suspect in the truck attack, had overstayed their welcome.
Last Friday's incident followed a number of similar attacks across Europe where vehicles have been used as weapons, being driven into crowds of pedestrians.
- Real, Atlético, Juventus y Mónaco están en las semifinales de Champions
- Redknapp named Birmingham boss; handed baptism of fire
- Marlins' Chen, Ziegler no-hitting Mariners through 8 innings
- Javier Duarte podría enfrentar 55 años en prisión
- Survivalist who ambushed police seeks to avoid death penalty
- For Trump, familiar judge gets case of deported Mexican
- Avanzará EU con muro este verano
- Mike Pence promises 'overwhelming and effective' response to North Korea
- Integrantes de la CIDH se reúnen con padres de los normalistas desaparecidos
- Duarte podría ser liberado si México no solicita extradición