Israel took control of the region after capturing Gaza and the Sinai Peninsula from Egypt in the 1967 Arab-Israeli war , and its soldiers guarded the border until Israeli troops left Gaza on Sept. 12 .