Nonequilibrium phase transition in a non-integrable zero-range process