Five people arrested over murder as the Swedish prime minister said the shooting could be linked to a foreign power.