Based on the random barrier model and using the mean field approximation, we derive an equa tion that describes the subdiffusion of particles in an external time varying force field. The derived equation predicts the frequency dependence of the conductivity and, in this regard, is consistent with the experiment. We show that the response of the system to an external perturbation depends significantly on the structure of the inhomogeneous medium.