An Islamic State suicide bomber struck at a mosque packed with Shia Muslim worshippers in northern Afghanistan on Friday, killing at least 46 people and wounding dozens in the latest security challenge to the Taliban as they transition from insurgency to governance.