About 23 mortar shells slammed into different parts of the Afghan capital on Saturday, killing at least eight people and wounding 31 others, an official said.

The shells were fired from two cars, Interior Ministry spokesperson Tariq Arian said. No one took immediate responsibility for the early morning attack that also targeted the posh Wazir Akbar Khan area of Kabul, which houses diplomatic missions.

JAMES CARAFANO: AFGAN-IRAQ TROOP REDUCTIONS-- HERE'S WHAT PENTAGON'S ANNOUNCEMENT REALLY MEANS

At least one rocket landed in the Iranian embassy compound. In a tweet, the embassy confirmed that a rocket came down in the courtyard and “shrapnel” hit the main building, causing damage to windows and equipment, without specifying the equipment.

Relatives stand around the dead body of a boy who was killed by a mortar shell attack in Kabul, Afghanistan, Saturday, Nov. 21, 2020. Mortar shells slammed into different parts of the Afghan capital on Saturday. (AP Photo/Rahmat Gul)

“Fortunately the incident has no casualty and all the staff are in good health,” the embassy said.

The Islamic State affiliate in Afghanistan claimed responsibility for the attack, according to SITE Intelligence Group.

The IS group has carried out similar attacks in the past and claimed responsibility for recent assaults in Kabul, including two devastating attacks on educational institutions that killed more than 50 people, many of them students.

As well as insurgent groups, there are several heavily armed warlords with militias in Kabul with long-standing animosities against each other.

JOE BIDEN TWEET ABOUT LEAVING AFGHANISTAN BY 2014 RESURFACES AS TRUMP PULLS TROOPS

Pakistan Prime Minister Imran Khan, who visited Kabul on Tuesday, condemned the attack and warned “it is important to be vigilant against the spoilers who are working to undermine the peace efforts.” He did not identify “the spoilers.”

The mortar barrage comes as representatives of the Afghan government and the Taliban continue to hold talks in Qatar, though progress has been slow.

Secretary of State Mike Pompeo was in Doha on Saturday to press for a reduction in violence in his meetings with both Taliban and government negotiating teams. The Taliban have mostly ignored such previous requests.

An Afghan man holds rocket shell after a rocket attack in Kabul, Afghanistan, Saturday, Nov. 21, 2020. Mortar shells slammed into different parts of the Afghan capital on Saturday, killing several and wounding dozens of people, an official said. (AP Photo/Rahmat Gul)

Pompeo met with 11 members of the Afghan government team, as well as with the Taliban's co-founder, Mulllah Abdul Ghani Baradar.

There are many within the Afghan government who want February's U.S.-Taliban peace deal scrapped. President-elect Joe Biden has called for a small, intelligence-based force in Afghanistan that would focus on counter-terrorism.

Meanwhile, Abdullah Abdullah, head of the government's High Council for Reconciliation, condemned the attack in a tweet, calling it a “cowardly” act. The council oversees the government's negotiating team at the table with the Taliban.

US TO DRAW DOWN TROOPS IN AFGHANISTAN, IRAQ BY JAN. 15, PENTAGON SAYS

Hours before the attack rattled Kabul, a bomb attached to a car killed one security worker and wounded three others in an eastern neighborhood of the capital, said Kabul police spokesperson Ferdaws Faramarz.

Violence in Afghanistan has spiked in recent months with increasingly horrific attacks often claimed by the Islamic State affiliate. The Taliban have also continued near daily assaults on beleaguered Afghan government forces.

CLICK HERE FOR THE FOX NEWS APP

There have been increasing calls for a cease fire if peace talks are to continue. The Taliban have been steadfast in their refusal, demanding that any truce be part of the negotiations.