Secretary of State John Kerry argued on Wednesday that Egypt’s 2011 revolution was started by tech-savvy young people with no ideological aims before being “stolen by” Islamists from the Muslim Brotherhood, who behaved autocratically after winning parliamentary and presidential elections.

Mr. Kerry’s remarks, in an address to the State Department’s Overseas Security Advisory Council, seemed at odds with the message sent by President Obama last month when he withheld $260 million in aid from Egypt’s military leaders, who forced the Brotherhood leader Mohamed Morsi from the presidency in July and have overseen a deadly crackdown on dissent.

America’s top diplomat discussed the revolution in a passage of his speech in which he suggested that young people in the Middle East turn to extremist ideologies only out of frustration at a lack of economic and educational opportunity.

Speaking of the Tunisian fruit vendor Mohamed Bouazizi, who set himself on fire in late 2010, Mr. Kerry said: “There was no religion, nothing, no extremism and ideology behind it. He got slapped around by a police officer, he was tired of corruption, and he wanted an opportunity to lead his life by being able to sell his wares.”

Turning to Egypt, and perhaps confusing the video-chat program Facetime with the social network Facebook, Mr. Kerry continued: