At the end of a kilometer-long, booby-trapped tunnel in the Gaza Strip, Israeli soldiers discovered cramped cells where the military said Hamas kept about 20 hostages.