Sci-fi has covered pretty much "everything", so it's not a surprise that there was a TV series in the 1970's that had this exact premise:<p><i>In the opening episode, set in the year 1999, nuclear waste stored on the Moon's far side explodes, knocking the Moon out of orbit and sending it, as well as the 311 inhabitants of Moonbase Alpha, hurtling uncontrollably into space.</i><p>I never could bring myself to watch it, because the premise was just too absurd.<p><a href="https://en.wikipedia.org/wiki/Space:_1999" rel="nofollow">https://en.wikipedia.org/wiki/Space:_1999</a>