Inflation in a Bianchi-IX cosmological model. The roles of primordial shear and gauge fields