Origin of the gamma-ray emission from supernova remnant HB9