Transport properties of a two-dimensional electron gas due to a spatially random magnetic field