The mayor and public security director, along with district officials, have been replaced in rare cluster of appointments.