It is being seen as an assault on media freedom in Afghanistan, which has faced an increased presence of ISIL fighters.