STOCKHOLM — The man accused of killing four people by steering a stolen beer truck into a crowd in Stockholm last week intends to plead guilty, his lawyer said in court on Tuesday.

Appearing in public for the first time since his capture, the suspect, Rakhmat Akilov, entered Sweden’s largest secured courtroom, a subterranean space in Stockholm District Court that is only three-quarters of a mile from the pedestrian street where the authorities say he rammed the truck into a crowd shortly before 3 p.m. on Friday. He was arrested about five hours later in a suburb north of Stockholm.

Accompanied by a lawyer and a Russian-language interpreter, Mr. Akilov was led into court by two police officers who gripped a black belt secured around his waist. Mr. Akilov, a 39-year-old Uzbek of medium build, was not handcuffed, and he wore a green fleece jacket wrapped around his head. The judge ordered him to remove it.

Mr. Akilov’s court-appointed lawyer, Johan Eriksson, said the defendant “admits to having committed the terrorist crime” and did not oppose his continued detention.