The man is suspected of attempted murder and serious weapons offenses.
Several shots are said to have been fired and there were people in the residence, but no one was injured, says Mats Eriksson, police press spokesperson.
The alarm came in just after midnight. Witnesses saw the man leaving the crime scene after the shooting and he was arrested shortly thereafter in the nearby area.
The police's work is now focused on securing evidence at the crime scene, knocking on doors, and reviewing surveillance cameras in the area.
We have what we usually call a good investigative position.
The police are investigating links to the gang environment.
We are doing that, but we have not established a motive yet. There are different theories that we are working with.