Police took control of the city Sunday , ending five months of sometimes violent protests by striking teachers and other groups who took over streets and buildings and called for the resignation of the state governor .