Authorities have shut some government offices after the worst violence in the territory for decades.