Chromodynamics of photons in an artificial non-Abelian magnetic Yang-Mills field