He did not say if the mosque was inside the ministry or near it. There was no immediate information about casualties and no immediate claim of responsibility.
The mosque blast follows last week’s suicide bombing at an education center in Kabul that killed as many as 52 people, according to a tally compiled by The Associated Press, more than twice the death toll acknowledged by Taliban officials.
The reason for the lower death toll provided by the Taliban was not immediately clear. In the past, they have at times been slow to confirm casualty figures in the aftermath of attacks.
Taliban security officials initially said 19 people had been killed at the Kaaj Higher Educational Center, then revised the death toll to 25 over the weekend.
However, The Associated Press spoke directly to relatives of 39 of those killed and obtained the names and other information about the remaining 13.