The suspected Stockholm truck attacker Rakhmat Akilov, a 39-year-old Uzbek and a jihadist sympathiser, admitted Tuesday to committing a "terrorist crime" by mowing down pedestrians on a busy street, killing four people and injuring 15 others.
Arrested just hours after Friday's attack, Akilov appeared in a special heavily-guarded high-security courtroom. Handcuffed and wearing a thick green hoodie, he kept his head bowed.
"Akilov confesses to a terrorist crime and accepts his custody detention," his state appointed lawyer Johan Eriksson said at a custody hearing in Stockholm.
Judge Malou Lindblom ordered Akilov to remove the hoodie and he complied, revealing dark hair with streaks of grey.
Akilov, a Russian speaker, had an interpreter to help him follow the proceedings. He did not address the court directly.
After Eriksson's statement, the judge agreed to the prosecution's request to have the rest of the hearing held behind closed doors due to the classified nature of information in the investigation.
After about an hour, journalists were readmitted to the courtroom and the judge remanded Akilov in custody.
The four people killed in the attack were two Swedes -- a 69-year-old woman and an 11-year-old girl -- a 41-year-old British man, and a 31-year-old Belgian woman.
Eight people were still in hospital on Tuesday, including two in a critical condition.
Akilov, a construction worker refused permanent residency in Sweden in June 2016, went underground last year after receiving a deportation order, police said.
- 'Order' from IS -
Friday's attack resembled previous rampages using vehicles in Nice, Berlin and London, which were all claimed by the Islamic State (IS) group.
IS has not claimed responsibility for the Stockholm attack, but Swedish media reports on Monday said Akilov had told investigators that he received an "order" from IS to carry out the attack against "infidels".
Swedish police have confirmed he had expressed "sympathies for extremist groups, including IS," but disclosed no other details.
The Aftonbladet newspaper reported that Akilov told investigators he was "pleased with what he had done".
"I mowed down the infidels," Aftonbladet quoted him as saying, citing sources close to the investigation and describing him as a father of four whose family had stayed behind in Uzbekistan.
"The bombings in Syria have to end," he was quoted as saying.
Deputy chief prosecutor Hans Ihrman refused to comment on the suspect's motive, while lawyer Eriksson would only say that his client had told police why he committed the attack.
The investigative news magazine Expo, which specialises in monitoring far-right activity, said Akilov's Facebook account before it was taken down on Friday reflected a "contradictory image."
It said Akilov had "liked" Buddhist and Mormon websites, and supported both Russian opposition politician Alexei Navalny and Prime Minister Dmitri Medvedev.
In March 2016, he posted a video condemning Islamist terror, but shared IS propaganda films and repeatedly expressed support for the radical group Hizb ut-Tahrir, which is banned in Russia.
The group, which claims to be non-violent and says it wants to achieve its goals by peaceful means, aims to establish a caliphate in Muslim regions of Russia and ex-Soviet Central Asian states.
Court documents seen by AFP showed Akilov, who is facing a lengthy prison sentence, had requested that Eriksson be replaced by a Sunni Muslim, saying "only a lawyer of this faith could assert his interests in the best way". The court refused the request.
- 'Confession not enough' -
Eriksson said the court had ordered Akilov to undergo a psychiatric evaluation as a standard procedure, and that a confession alone would not lead to a conviction.
"A confession is not enough to be convicted of a crime, other evidence is needed to back this up," Ihrman told reporters at the courthouse.
Police have previously said they are sure the suspect is the driver of the truck, citing technical evidence and video camera surveillance.
Prosecutors also said the arrest warrant against a man detained on Sunday had been lifted but he would not be released due to a previous deportation order against him.
"We will continue to investigate if Akilov had other people around him" who may have been accomplices, Ihrman said.
Police have earlier said the investigation could "take up to a year to finish."