Generation of a frequency-degenerate four-photon entangled state using a silicon nanowire