As a succession of smaller aftershocks rattled the city, residents poured from their homes and ran for higher ground.