Darboux integrability of generalized Yang-Mills Hamiltonian system