Search for massive eνγ and μνγ final states at the CERN super proton synchrotron collider