At least four people have been killed and about 16 people injured after a building collapsed on a Mallorca beachfront on Thursday.