Swedish fashion retailer H&M has confirmed that an "extremely unfortunate" factory fire has killed 21 workers at a supplier plant in Bangladesh.