Indonesia’s geophysics agency lifted a tsunami warning on Friday after a strong quake off the islands of Sumatra and Java.