The two attackers were shot dead after a gun battle outside Hebron, four days before Israel's general election.