Israeli military officials say the building housed a workshop used for weapons storage by the militant group Hamas .