No militant group responsibility for Tuesday’s attack and there were no immediate reports of injuries or damage.
The interior ministry’s spokesman, Tariq Arian, said the mortars were fired from two vehicles in the northern and eastern part of the Afghan capital.
According to eyewitnesses, who spoke on condition of anonymity fearing reprisals, at least one mortar shell landed in the upscale Wazir Akbar Khan neighbourhood, where diplomats and senior government officials reside.
The attack came a day after the government said it would not release the last 320 Taliban prisoners it holds until the insurgents free more captured Afghan soldiers.
The decision went against that of a traditional Afghan council held earlier this month, the Loya Jirga, and is likely to further delay intra-Afghan peace talks sought by the United States.
Taliban spokesman Zabihullah Mujahid said he was not aware of the mortar attack in Kabul.
The Islamic State group’s affiliate, which operates in Afghanistan, has interrupted national celebrations in the past with rocket fire.
Also on Tuesday morning, Afghan President Ashraf Ghani attended an Independence Day ceremony at the defence ministry in Kabul, inspecting an honour guard and laying flowers on the Independence Minaret monument there.