How does Kazuma actually die in the beginning of the anime?
Kazuma died because of heart attack.

Actually, the girl will survive even if Kazuma didn't save her. The vehicle that was moving towards the girl was just a slow tractor. After he pushed the girl, Kazuma died because of heart attack, he thought it was a truck and he was scared to death.