The agency said the tremor had a magnitude of 7.6. Its epicenter was just off the coast of Sumatra.
The Pacific Tsunami Warning Center issued a tsunami alert for Indonesia, Malaysia, India and Thailand.
The agency also said that the shaking could be felt in high buildings in the capital, Jakarta and in neighboring Singapore and Malaysia.
There were no immediate reports of a high waves or injuries.