Experts had expressed grave concerns for the 15m-long animal after it came dangerously close to shore.