ANSWER:
How can one know that Allah decreed that he would die in that particular manner?
It is the individual who chose to end his life and he chose to enter hell for eternity!
He could have chosen to be an imam leading people in prayers but he didn’t!