The magnitude-7.4 quake collapsed buildings and caused widespread damage in the South American country.