The two men, detained in the western city of Herat on August 9, were released on Thursday morning.