Ahmadinejad re-elected as protests erupt