The whale left the barge it had been towed on from Wismar Bay on the Baltic coast and released into the North Sea off Denmark.