Gunmen opened fire on guests at the Intercontinental Hotel in western Kabul, killing at least 18 people and wounding many more. Taliban militants claimed responsibility for the attack,
In a separate attack in Farah city, Taliban fighters killed 11 police and seized a large quantity of weapons and equipment, he said.
The latest violence underlines the extent of the pressure faced by the Western-backed government of President Ashraf Ghani, already heavily criticized for a spate of suicide bombings in the capital, Kabul.
Last week, Taliban fighters, who challenge government control in almost half the country, seized a district in the northern province of Baghlan and there has been heavy fighting in areas from Faryab in the northwest to Ghazni, south of Kabul.