Symmetry of the Dirac equation with an external non-Abelian gauge field