The quake struck 175km north northwest of the city of Ternate. Photo: USGS