Hamas hails end of US occupation of Afghanistan