I think it would depend on whether Bush joined in and struck Iran as well. If he did, he would probably declare that he had to stay in office and cancel the election.
Otherwise, I think Obama would still win. Obama is just a better choice and it is so obvious that he would have to work at losing the election hard.