Detecting photon-photon interactions in a superconducting circuit