The shooting took place just before 8.30am, as several children at the Kråkan Förskola were having breakfast next to a window overlooking the street.
An eye witness said that he saw the attackers moments before the shooting took place.
“There were four or five men, all of them had black clothes and one of them had a pistol, and then I heard, like, four shots,” he said. Witnesses said the perpetrator then jumped in a car and sped away from the scene.
Staff in the school heard the shots, and then saw a man running away. Although the children must have also heard, they appeared not to understand what had happened.
Alex Regnér, a parent, was inside the for a parent-teacher meeting when the shooting took place, and when he left shortly afterwards, there was still blood visible on the pavement outside.
“There was a woman of about 35, 40, standing by the ambulance and screaming, and it was really upsetting,” he told The Local. “And there was a young male. He was angry and punching a garage door.”
He said the shooting had added to his anxiety about bringing up a small child in the city.
“A couple of weeks ago there was a man running around with a knife, trying to kill children and mothers in the park where we play with our daughter almost every weekend,” he said. “And now this happens outside our daycare. It doesn't feel good. It happened at exactly the time I usually leave Lo, my daughter. I'm pretty shaken.”
A reporter from the local Sydsvenskan newspaper, Erika Oldberg, attempted to help the man as he lay on the pavement by trying to stop the bleeding from his head.
“He was rasping and we could feel that he was breathing,” she said. The man, reportedly in his 50s, was taken to hospital but died shortly afterwards, police confirmed.
“The man who was shot has died, and an investigation into murder has been opened,” a statement from Malmö police said. Police have also called for witnesses to get in touch with any information by speaking to police working at the scene or calling 114 14.
The area around the daycare was cordoned off on Wednesday morning, while police continued their work.
Wednesday's shooting comes after a wave of shootings believed to be part of ongoing conflict between local gangs, which have led to the deaths of more than ten young men this year alone.
In November, there were four shootings within a 24-hour period, leaving one young man seriously wounded.
In autumn, the city launched a programme called 'Sluta Skjut' or 'Stop Shooting' based on the Group Violence Intervention strategy used with positive results in many US cities. This has included a meeting between police and some repeat offenders currently on probation, and tougher measures on those suspected of involvement in gun crime.
READ ALSO: In figures: 2017's shootings in Sweden