Hamas fired thousands of rockets as far north as Tel Aviv and sent fighters into southern cities near the border.