Police described the object as a ‘dangerous object’ as Sweden’s prime minister condemned the ‘attempted attack’