An apartment block has collapsed in the city of Poznan, Poland, killing four people and injuring 24 others.