The Islamist Palestinian group Hamas on Tuesday released an Israeli soldier captured more than five years ago, initiating an elaborate exchange as hundreds of Palestinian prisoners on Israeli buses began their journey to freedom through Egypt and on to the West Bank, Gaza or exile.