Israel’s military said on Thursday it did not know who fired two rockets from Gaza at Tel Aviv but it held Hamas responsible.