Magnitude 6.9 earthquake hits Chile as president is sworn in