Dynamics of a nanoscale rotor driven by single-electron tunneling