Police and officials purged after coup attempt