The Israeli military says it targeted Hamas members "operating in a training compound", which Hamas rejected as "fabrication and lies".