▁of ▁ 2 0 0 5 , ▁where ▁he ▁finished ▁third ▁in ▁the ▁vote ▁count , ▁closely ▁following ▁the ▁front ▁run ners , ▁ex - pres ident ▁Ak bar ▁Hash emi ▁Raf san j ani ▁and ▁Te h ran ▁mayor ▁Mah m oud ▁A hm ad ine j ad . ▁As ▁neither ▁gathered ▁a ▁majority ▁of ▁the ▁vote , ▁a ▁run - off ▁election ▁was ▁held ▁on ▁ 2 4 ▁June ▁ 2 0 0 5 , ▁and ▁won ▁by ▁A hm ad ine j ad . ▁ ▁After ▁the ▁announ cement ▁of ▁the ▁election ▁results , ▁K arr ou bi ▁alleg ed ▁that ▁a ▁network ▁of ▁mos ques , ▁the ▁Islam ic ▁Revolution ary ▁Guard ▁Corps , ▁and ▁Bas ij ▁milit ia ▁forces ▁had ▁been ▁il leg ally ▁used ▁to ▁generate ▁and ▁mobil ize ▁support ▁for ▁A hm ad ine j ad . ▁He ▁then ▁explicitly ▁alleg ed ▁that ▁M oj tab a ▁K ham ene i , ▁a ▁son ▁of ▁the ▁Supreme ▁Le ader ▁Ay atol lah ▁K ham ene i , ▁was ▁among ▁the ▁consp ir ators . ▁Ay atol lah ▁K ham ene i ▁wrote ▁to ▁K arr ou bi , ▁character izing ▁these ▁alleg ations ▁as ▁" below ▁his ▁dign ity " ▁and ▁warning ▁that ▁they ▁would ▁" result ▁in ▁a ▁crisis " ▁in ▁Iran , ▁which ▁he ▁would ▁not ▁allow . ▁K arr ou bi ▁respond ed ▁in ▁an ▁open ▁letter , ▁res ign ing ▁from ▁all ▁his ▁political ▁posts , ▁including ▁that ▁as ▁advis er ▁to