Mr. Zuckerberg made his comments about the hypothetical artificial intelligence as Meta posted a 36 percent quarterly increase in profit and a 22 percent jump in revenue.