Kondo resonance of a microwave photon