President Mohamed Morsi of Egypt, who billed his 40-minute speech to world leaders as the first by a democratically elected leader of his country, condemned the violence stemming from a short online video that insulted the Prophet Muhammad and led to numerous deaths, including that of the American ambassador to Libya and three of his staff members.