A Chern-Simons--Yang-Mills-Higgs system in 3+1 dimensions