Prosecutor resigns following bid to alter dog’s vocal cords