Tremors were felt in the capital city when a powerful earthquake shook Panama, triggering a tsunami threat warning in Central and South America.