At least five garment workers have died in Chile after the factory they were working at was torched by looters amid a wave of protests over living costs and inequality.