Afghan official says blast at Shiite mosque kills 29