An apparent suicide blast close to a government ministry in the Afghan capital Kabul on Sunday killed at least seven people and wounded more than 15, officials said, in an attack claimed by Islamic State.