A 6.2 magnitude earthquake struck Aceh province, triggering panic among residents still traumatized by the 2004 tsunami.