A Borel-Cantelli lemma for intermittent interval maps