A 7.4-magnitude earthquake has struck off the coasts of Argentina and Chile, sparking a tsunami alert.