Origin of the High-energy Neutrino Flux at IceCube