Along with Mr. Haniya’s headquarters, which was destroyed, the Israeli military said that it struck the police and homeland security headquarters of Hamas, as well as the house of a Hamas commander, Ahmed Randor.

Mark Regev, a spokesman for Prime Minister Benjamin Netanyahu of Israel, said government buildings had been targeted because Hamas “makes no distinction between its terrorist military machine and the government structure.”

“We have seen Hamas consistently using so-called civilian facilities for the purposes of hiding their terrorist military machine, including weapons,” Mr. Regev said.