The temblor killed dozens in outlying areas. Workers were keeping residents of apartment buildings from exiting through locked lobby doors.