Residents were on a difficult search for safety in a city where thousands have died and homes and temples have been reduced to rubble.