Reference: Fataawa Ramadhaan – Volume 2, Page 645, Fatwa No. 649
Question: If a Muslim fasted some days in Ramadhaan then died, is it upon the one in charge of his affairs [after his death] to complete [the rest of the days of Ramadhaan left] on his behalf?
Response: No! It is not upon the one who is in charge of his affairs to complete [the rest of the days of Ramadhaan left] on his behalf, nor to feed the needy on his behalf. This is because when one dies his actions come to a standstill, as the Prophet ﷺ said:
«If someone dies his actions come to a standstill, except for three: Recurring charity [he has made], or knowledge which he has benefited [others] with, or a righteous son who prays for him».
So based upon this, if someone dies [under the circumstances mentioned in the question] then there is no need to complete [the rest of the days of Ramadhaan left] on his behalf nor to feed the needy on his behalf, rather, even if he died in the middle of the day whilst fasting do not fast [that day] on his behalf, nor feed the needy [on his behalf].