How did the scientist Abu Ja'far Muhammad Ibn Musa Al Khwarizmi die?

he died because he had a heart attack