With its open-air marijuana stalls festooned in psychedelic colors and its freewheeling, self-governing structure, the Christiania neighborhood in Copenhagen has been for decades emblematic of Danish liberalism and tolerance.

On Friday morning, however, a symbol of hippie hedonism came crashing down — at least temporarily.

At about 9 a.m., hundreds of residents began dismantling the drug market on Pusher Street in the heart of the city, where men in masks usually peddle marijuana and hashish from stalls. Video footage showed residents hauling away plants and using saws, drills and bulldozers to demolish the stands. Signs saying “no photography allowed” were ripped down.

The decision to tear down the market, which for decades has been a popular spot for curious tourists and Copenhagen residents alike, came after Mesa Hodzic, 25, a Danish citizen born in Bosnia who was a suspected drug dealer, shot two police officers and a bystander this week, according to the authorities. Both officers and the bystander survived.

The shootings occurred when officers tried to arrest him, the police said. Mr. Hodzic fled, and the police eventually confronted him on Thursday in a suburb of Copenhagen. Officers shot him when, they said, he resisted arrest. He died of his wounds on Friday.