While Amirli fought off the initial attack in June, it has been surrounded by the militants since mid-July