The main suspect accused of killing two people at an Ikea store in Sweden faced imminent deportation and attended a meeting on his asylum status just hours before the knife attack, officials say.
The 35-year-old Eritrean, who was found at the scene with serious knife injuries, had earlier met to discuss his failed residency application, the Swedish Migration Agency said.
A mother and her adult son died in the attack in Vasteras on Monday.
A second man has also been detained.
On Wednesday, the prosecutor’s office said that investigators were still holding the 23-year-old who was staying at the same centre for asylum seekers as the injured man.
He has denied any involvement in the attack.
Police say the reason for the stabbing is unclear, but they do not believe it was politically motivated.
Migration officials said the 35-year-old had attended a meeting at the agency on Monday morning about plans to deport him to Italy after his residency application was rejected last month.
Swedish newspaper Aftonbladet has reported that CCTV images show the suspect grabbing two knives from the kitchenware section of Ikea just before the two shoppers, a 55-year-old woman and her 27-year-old son, were attacked.
“The attack ends when the alleged murderer stabs himself in the stomach,” the report said.
Police chiefs have not confirmed the footage or whether knives on sale in the shop were used.
The 35-year-old has not yet been interviewed due to the serious nature of his injuries.
Police increased security at refugee accommodation centres in the region this week after confirming they had arrested two Eritrean asylum seekers over the murders.
Local officials feared a backlash from “dark forces” who wanted to exploit the case, police chief Per Agren said.
The store in Vasteras, which is about 70 miles (115km) west of the capital Stockholm, is one of the largest in the country.