Israel says it hit a Hamas command centre, while Palestinian officials said most killed were women and children.