Authorities have urged the public to heed official advice and instructions and exercise caution, warning that aftershocks can last hours.