Nonlocal scalar conservation laws with discontinuous flux