The Israeli military denied responsibility for the attack in which six people, including four children, were injured.