A Tesla driver was involved in a fatal crash after the electric vehicle's automated driving software failed to react to another car on the road.