BRST quantization of gauge theory in noncommutative geometry: Matrix derivative approach