The police said they were still trying to determine a motive for the attack in the southern city of Malmo.