Israel army contests Hamas ruling