The Israeli military says it was targeting members of Hamas "operating in a training compound". Hamas has not commented.