City attorney resigns; named deputy prosecutor