Five people were confirmed trapped, including two in contact with rescuers, and 18 more were feared under the rubble, officials said.