Alabama police chief quits amid questions over ticketing