We investigate the possibility that the recently detected TeV-PeV neutrino events by IceCube can originate from extragalactic ultra-high-energy cosmic ray interactions with the cosmic microwave background or the UV/optical/IR background. This is done by simulating the propagation of the cosmic rays from their sources to the observer, including the production and propagation of secondary neutrinos and gamma rays. For this purpose we use the publicly available simulation package CRPropa 2.0. We find that in all the scenarios considered here the simulated neutrino flux level remains at least one order of magnitude below the flux level indicated by the IceCube events, thus showing it is difficult to interpret the IceCube events in terms of a cosmogenic neutrino flux.