A bomb exploded in a mosque in the Afghan capital during Friday prayers, killing at least one person and wounding 16, the interior ministry said.