The Israeli military said Hamas, the Islamist group that rules Gaza, launched the rocket that destroyed a house north of Tel Aviv.