Israeli warplanes bombed Hamas targets in the Palestinian enclave of Gaza early on Friday after Israel’s military said militants had fired two rockets toward the city of Tel Aviv.