Isis has said it is behind a suicide bombing and gun attack on a TV station in Kabul, in which gunmen dressed as police killed a security guard and opened fire on staff.

Afghan special forces suppressed the attack on Shamshad TV after two hours, but police said at least two people had been killed and 20 wounded.

"People dressed in police clothes came in and initially threw hand grenades, which killed one of our guards and wounded another," Abed Ehsas, Shamshad's news director told broadcaster Tolo News TV.

"After that, others got into our building and started firing. Some of our colleagues were hit, though, thank God, many others managed to get out. Some were wounded by gunshots, falling glass and when they jumped from high floors."

Raqqa's fall: A journey into the heart of Isis’ failed caliphate

Najib Danish, spokesman for the Interior Ministry, said the two casualties were a male and a female security guard at Shamshad TV.

"There were two attackers and both have been killed," Mr Danish said shortly after the attack, adding that the police have sealed off the station and were combing the premises.

He said the police rescued some of the TV staff as the attack was unfolding but he did not elaborate.

During the attack, a special forces unit blasted a hole in the concrete wall around the compound and entered the site amid a crack of gunfire.

At least one attacker was killed during the operation, while another was killed at the compound entrance.

In a statement on its news agency Amaq, Isis claimed to have killed as many as 20 people, without providing evidence.

The group, based mainly in the eastern province of Nangarhar, has claimed a number of attacks on civilian targets in the Afghan capital.

It often inflates reports of its atrocities in propaganda.

The Taliban denied responsibility for the attack.

Syrian Democratic Forces take Raqqa from Isis – in pictures Show all 8 1 /8 Syrian Democratic Forces take Raqqa from Isis – in pictures Syrian Democratic Forces take Raqqa from Isis – in pictures Syrian Democratic Forces fighters celebrate victory in Raqqa atop of military vehicles REUTERS Syrian Democratic Forces take Raqqa from Isis – in pictures Fighters of Syrian Democratic Forces march past destroyed buildings as they celebrate victory REUTERS Syrian Democratic Forces take Raqqa from Isis – in pictures Fighters of Syrian Democratic Forces gesture the "V" sign in Raqqa REUTERS Syrian Democratic Forces take Raqqa from Isis – in pictures Fighters of Syrian Democratic Forces evacuate a civilian from the stadium REUTERS Syrian Democratic Forces take Raqqa from Isis – in pictures A civilian prays after she was rescued by fighters of Syrian Democratic Forces from the stadium REUTERS Syrian Democratic Forces take Raqqa from Isis – in pictures Syrian Democratic Forces fighters ride atop of military vehicles as they celebrate victory in Raqqa REUTERS Syrian Democratic Forces take Raqqa from Isis – in pictures Syrian Democratic Forces fighters celebrate victory in Raqqa REUTERS Syrian Democratic Forces take Raqqa from Isis – in pictures A fighter of Syrian Democratic Forces celebrates in Raqqa Reuters

The attack took place about three weeks after a series of attacks including one on a Shia mosque in Kabul in which more than 50 people were killed.