A 5-year-old child has died after being left in a hot car for several hours while his family prepared for a birthday celebration, according to Texas authorities.