A powerful magnitude-8.3 earthquake hit off Chiles northern coast Wednesday night, causing buildings to sway in the capital of Santiago and bringing flooding