The Israeli military says the attack targeted an office of a militant group in Gaza city .