The U.S. president denounced the deadly mosque attack in Egypt and reached out to its president Friday.