Why did the US dispatch warships to the waters off Panama?

Because the Hull-Alfaro treaty, The U.S. are allowed to keep Panama safe, but cannot interfere in government (Panama) actions, but are able to push off bad presidents or vice presidents, if they have proof.

The US interfered in 1903 to allow Panama to declare independence from Colombia.