At least 24 people have been killed and more than 40 wounded after a suicide car bomb targeted a bus carrying ministry staff in Afghanistan's capital Kabul, officials said.