An arrest over a Facebook post was followed by investigations, resignations and the disbanding of the city’s police force.