The Israeli military said it was targeting a command center of the Islamic Jihad militant group , and had warned residents of the house before the airstrike took place .