The attack has been claimed by Islamic State (IS) who are Sunni Muslim. Shia Muslims in Afghanistan have been targeted and attacked at least three times by IS in recent past.
It is estimated that 20% of the Afghan population are Shia Muslim with the rest being Sunni.
President Ashraf Ghani said the attack was an attempt "to sow seeds of discord" and Afghan government Chief Executive Abdullah Abdullah urged the country not to fall victim to "enemy plots that divide us by titles".
The Taliban, a Sunni Islamist fundamentalist group fighting in Afghanistan, has also condemned the attack.
to detonate - to activate; to set off
to claim - to declare responsibility
an attempt - a try
sow - to grow
discord - great disagreement and uneasiness among groups
a plot - a plan
to condemn - to publicly express disapproval