Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

Rakhmat Akilov, the Uzbek suspect in the deadly truck attack in Stockholm that killed four people and wounded 15 others, has admitted to committing a terrorist crime, his lawyer told a court hearing Tuesday.

"His position is that he admits to a terrorist crime and accepts therefore that he will be detained," said Johan Eriksson. He was representing the 39-year-old at a hearing to decide whether he should be kept in custody.

Jonas Hysing, Sweden's National Police Commander, told reporters Saturday that Akilov’s application for residency was rejected last year and he was supposed to have left the country.

The attack occurred in Sweden’s capital Friday afternoon when a stolen beer truck was driven into a crowd of shoppers and through the side of a department store.

Among the dead was Chris Bevington, a British citizen worked for the digital music service Spotify.

Two Swedes and a Belgian citizen were also killed.

The low-tech rampage was the latest to use a weaponized vehicle to devastating effect, following similar incidents in England, France and Germany.