Afghan police reported that security forces killed at least three Taliban militants in cross fire which lasted until early Saturday morning after a suicide attack targeted a guest house near the Spanish embassy in the capital Kabul on Friday.
Five Afghan policemen died in the attack. Spanish government confirmed earlier that a Spanish security officer was also killed in the attack.
The attack started with a sucide car bombing near the guest house, after which three militants opened fire on the security forces.
Clashes then took place in a heavily protected neighbourhood of Kabul on Friday evening.
"The operation took time because we wanted to rescue the people trapped in surrounding buildings and we had to move cautiously and in a proper tactical manner," Rahimi told Reuters.
The attack comes a few days after Taliban militants targeted an airport complex in the southern city of Kandahar, killing 50 people.
The Taliban has intensified its attacks in Kabul, going after foreign targets as well as the government.
On Thursday the province of Nangarhar dealt with a female suicide bombing attack in the Jalalabad area, where a woman blew herself up, reportedly killing her three children and an officer who stopped their car.