Gauge Transformation Formula for the Matrix Chern-Simons Three-Form