Official says 40 others have been wounded in a blast that appears to have been aimed at the Hazara community.