A boy with a firearm was arrested in the Rosengård district of Malmö at 2 pm on Wednesday, the police write on their website.
When it turned out that the boy was under 15 years old, and not liable to punishment, the arrest was lifted and the case was handed over to the social services.
According to the police, it was the public that raised the alarm after reacting to the boy's deviant behavior.
The police are investigating preparation for murder and serious weapons offenses.