Whale 'saves' biologist from shark