People run from a house in the old town of central Stockholm. Swedish police sealed off parts of Stockholm's old central town, including the headquarters of the Social Democrat Party and the ruling Moderates Party, after a bomb threat. REUTERS/Bertil Ericson/TT News Agency

Stockholm, Sweden - A man who had threatened to set off explosives in the heart of Stockholm on Thursday gave himself up and was taken away by police, a spokesman said.

Police had sealed off large parts of the capital city and evacuated buildings as they negotiated with the man who said he was carrying explosives and had barricaded himself inside a building near the headquarters of the main government party.

“He came out, he showed he wasn't dangerous and he could be detained without drama, and he has now been taken away from there ... What remains for us is to search the premises to make sure there are no dangerous objects,” police spokesman Kjell Lindgren said.