The quake kills almost 1,000 people on Nias island and warnings of a possible tsunami sparks panic and mass flight in coastal regions.