Resignation likely an attempt to boost moderate contender; announcement leaves 6 in race set for Friday, which is expected to be won by hardline judiciary chief Ebrahim Raisi