KABUL, Afghanistan — Gunmen wearing suicide vests attacked one of Afghanistan’s leading television stations on Tuesday morning, killing two people, Afghan officials said.

The attack happened during business hours, but reports said that most of the roughly 150 employees of the station, Shamshad TV, had safely escaped the building in downtown Kabul, the Afghan capital.

The Islamic State claimed responsibility for the attack, according to online statements monitored by the SITE Intelligence Group. Shamshad TV stopped broadcasting during the attack but resumed a few hours later, saying it was over. Their anchorman appeared on air with his hands bandaged from injuries he had just suffered.

The district police chief for the area, Avas Akbari, said the attackers had killed a guard and wounded 16 Shamshad employees. They brought a large quantity of ammunition with them, he said, and also wore suicide vests, but for some reason did not detonate them.