A magnitude-8.2 megathrust earthquake struck late on Tuesday off the coast of Northern Chile and produced a large tsunami.