Police in Sweden had arrested a suspect on suspicion of preparing a terror attack.