Khalil started memorizing the Qur’an at an early age and developed what he called a “love for the word of God.” As he grew older, his views hardened into a radical form of Islam and he joined an Islamic group. He engaged in terrorist acts designed to overthrow the Egyptian government, and for a time received military training in a remote, desert area of Yemen.