A 7.1 magnitude earthquake was detected Sunday near the central coast of Chile, US authorities said, noting the risk