How did Moses write Deuteronomy if it records his death?

This article has been translated into the following languages:

Indonesia