The five-year-old was critically injured in the incident.