A bomb attached to a handcart exploded in Kabul on Friday, officials said, killing eight civilians in an area largely inhabited by Afghanistan’s Shia community.