The declaration followed weeks of threats by the incoming president to take back the canal, which Panama retained control of at the turn of the century.