A fire in a tower block in Bangladesh's capital killed seven people and injured at least 28 others, with many still trapped.