The whale became stranded on a sandbank before it was rescued, only to swim into shallow waters further along the coast.