Large magnetoresistance in an inhomogeneous magnetic semiconductor