Who killed moctezuma?

There is a controversy over how Moctezuma Xocoyotzin actually died, but the argument basically is that the Spaniards from back then say that the Aztec people killed him in a revolt of the government with rocks and the descendents of the Aztec people say that the Spaniards killed Moctezuma once they realized he had no more power over his people.