A 7.7 magnitude tremor has been recorded off the coast of Indonesia, with several aftershocks recorded.