A shark — possibly a juvenile great white shark — was spotted swimming in the waters off Torrey Pines State Beach on Monday afternoon, prompting warnings to beachgoers.