The performance analysis of a free space optical (FSO) communication system in the presence of random jamming is presented over a Málaga (M) distributed channel model with pointing errors and atmospheric attenuation. Firstly, the probability density function expressions of the transmission channel, signal-to-jamming ratio, and signal-to-noise ratio are derived. Then, considering the probability of the jammer and Gaussian white noise, the closed-form expressions for the ergodic channel capacity, outage probability, and average bit error rate are derived. Moreover, asymptotic expressions for the aforementioned performance metrics are also derived to ascertain the diversity gain of the system. Extensive Monte Carlo simulations are performed to demonstrate the credibility of this theoretical analysis. Results indicate that the adverse impact of random jamming is higher than that of Gaussian noise for the FSO communication system. Besides, this observation highlights the pulsating nature of the jamming effect, showcasing that within high signal-to-jamming ratio regions, a low probability jammer exerts the most significant impact on the FSO system.