Israeli military officials say their strike hit a building where militants had been working on weapons to use against Israel .