Panama was struck by a powerful magnitude 7.7 earthquake followed by a 6.6 magnitude quake later in the day.