The Taliban-ruled state has suffered Pakistani strikes against government installations over the past week following accusations, which it denies, that it harbours militants.
The heaviest fighting in years between the neighbours has raised fears of a protracted conflict along their 2600km border, with several countries including Qatar and Saudi Arabia calling for restraint and offering to help mediate a ceasefire.
Explosions echoed across parts of Kabul before sunrise on Sunday, followed by bursts of gunfire, a Reuters witness said. It was not clear what had been targeted or whether there were casualties.
Taliban administration spokesperson Zabihullah Mujahid said the sounds were the result of Afghan forces targeting Pakistani aircraft over the capital.
"Air defence attacks were carried out in Kabul against Pakistani aircraft. Kabul residents should not be concerned," Mujahid said.
The violence follows air strikes inside Afghanistan this week that Pakistan said targeted militant infrastructure. Afghanistan described the strikes as a violation of sovereignty and announced retaliatory operations along their shared border.
The United Nations wrote on X that major cities in Afghanistan were reportedly bombed by the Pakistani military on Friday, marking a new escalation and raising fears for civilians already struggling under the harsh rule of the Taliban authorities.
Iran, which shares borders with both Afghanistan and Pakistan, had offered to help facilitate dialogue before itself coming under attack on Saturday from Israel and the US bent on diminishing Iran's military capability.
Pakistan has said Afghanistan harbours Tehreek-e-Taliban Pakistan militants, which it said are waging an insurgency inside Pakistan.
Afghanistan has denied the accusation, saying it does not allow Afghan territory to be used against other countries and that Pakistan's security challenges are an internal matter.
Pakistani security sources have said operation "Ghazab Lil Haq", meaning "Wrath for the Truth", was ongoing and that Pakistani forces had destroyed Afghan posts and camps.
Both sides have reported heavy losses, issuing differing casualty figures for each other.
Reuters could not independently verify the claims.
Diplomatic efforts have intensified, with Saudi Arabia, Russia, China, the European Union and United Nations urging restraint and calling for talks.
The US said it supports Pakistan's right to defend itself.
Pakistan Defence Minister Khawaja Muhammad Asif described the fighting as "open war".
Afghanistan Interior Minister Sirajuddin Haqqani said the conflict would be "very costly".