Chief Election Commissioner resigns