Primordial anisotropies in gauged hybrid inflation