The quake struck at 5.18am on Tuesday at a depth of 4km.