In the name of Allah
First of all you should know that Allah is the "Creator" of both death and life as
this verse states:
الَّذِي خَلَقَ الْمَوْتَ وَالْحَيَاةَ لِيَبْلُوَكُمْ أَيُّكُمْ أَحْسَنُ عَمَلًا وَهُوَ الْعَزِيزُ الْغَفُورُ
[He] who created death and life to test you [as to] which of you is best in deed - and He is the Exalted in Might, the Forgiving
Surat Al-Mulk 67:2
And death is inevitable and every one is going to die:
كُلُّ نَفْسٍ ذَائِقَةُ الْمَوْتِ وَنَبْلُوكُمْ بِالشَّرِّ وَالْخَيْرِ فِتْنَةً وَإِلَيْنَا تُرْجَعُونَ
Every soul will taste death. And We test you with evil and with good as trial; and to Us you will be returned.
Surat Al-'Anbyā 21:35
And live has a certain term:
قُلْ لَا أَمْلِكُ لِنَفْسِي ضَرًّا وَلَا نَفْعًا إِلَّا مَا شَاءَ اللَّهُ لِكُلِّ أُمَّةٍ أَجَلٌ إِذَا جَاءَ أَجَلُهُمْ فَلَا يَسْتَأْخِرُونَ سَاعَةً وَلَا يَسْتَقْدِمُونَ
Say, "I possess not for myself any harm or benefit except what Allah should will. For every nation is a [specified] term. When their time has come, then they will not remain behind an hour, nor will they precede [it]."
Surat Yūnus 10:49
So it is not our right to ask Allah or blame him about his creations or doing as this verse states:
لَا يُسْأَلُ عَمَّا يَفْعَلُ وَهُمْ يُسْأَلُونَ
He is not questioned about what He does, but they will be questioned.
Surat Al-'Anbyā 21:23
After all Allah is he who created us.