Gaza’s ruling Hamas government said Tuesday it executed two Palestinian men for collaborating with Israel.