A 10-year-old boy critically hurt in a car crash his father fled, leaving him behind, has died.