The surge in violence by the terrorist organization comes just three weeks before the U.S. is set to end its combat mission in the country.