Militant jailed for entering Gaza