This didn`t have anything to do with there having been an election three days ago. Only conspiracy theorists would imagine that Obama wanted the popular general in his administration up through Election Day, but wanted him out afterwards. Only they would think that CIA and FBI directors can be tricky to fire (see tenure of J.E. Hoover, 1789-1972), so it`s best if matters can be arranged where they fall on their own swords.
But only conspiracy theorists might think such terrible things.