The agency initially reported the earthquake as a magnitude 6.2, but later revised it to a magnitude 5.9.
The agency did not issue a tsunami warning as the tremors would not potentially trigger giant waves.
Indonesia, located in the 'Pacific Ring of Fire,' is prone to earthquakes.