A San Bernardino County sheriff's deputy who was "violently attacked" and severely injured after a traffic collision on New Year's Eve has died, authorities said Tuesday.