A tsunami warning has been issued in the Indian Ocean after Indonesia's geophysical agency reported a powerful earthquake off Aceh province.