He allegedly gave information to Shin Bet , the Israeli intelligence organization , admitting the group planned to kidnap an Israeli soldier to be used in an attempt to win freedom for Hamas prisoners .