Officials say at least 47 people have been killed in the quake, with some still trapped under rubble.