You could use seperate nav meshes, or a nav mesh modifier volume to block the sharks ability to follow