Gloucester police chief retires, acting chief named