An earthquake of magnitude 7.2 struck off the west coast of Northern Sumatra in Indonesia on Friday.