Waste gas purification in a biological filter bed