A 7.0 magnitude earthquake in the city of Anchorage in Alaska has caused damage to buildings and homes.