A powerful earthquake and a series of strong aftershocks rattled Panama on Friday, injuring people and damaging buildings.