Ghani in a tweet said that he called the Chief Executive Abdullah Abdullah and Karim Khalili to assure that they are safe.
He emphasised that the security officials and responsible authorities have been instructed to address all victims of the incident.
This comes as at least 18 people were wounded in a ceremony marking the death anniversary of Abdul Ali Mazari on Friday.