Five people died after a three-story building in the southern Polish ski resort of Szczyrk collapsed on Wednesday following a gas explosion, local authorities said on Thursday.