The juvenile shark was found in the the rockpool in Sydney's Palm Beach