Repulsive photons in a quantum nonlinear medium