An emergency alert warning of an imminent missile attack was mistakenly sent out, causing panic among more than a million people in Hawaii.