Hyena Road
(2015)

Main plot:
The Canadian-led Battle Group in Kandahar, Afghanistan wants to build Hyena Road into southern Afghanistan.  Local warlord BDK claims to support the Canadians but actually opposes the road.  The Canadians ally with a legendary warlord called "The Ghost" who opposes BDK's shameful ways.

In the end, a Canadian sniper kills BDK, but the Canadians and The Ghost get killed too.  The Hyena Road project probably moves forward now that BDK is dead.

Sub-plot:
Female Captain (in charge of the command post) is in a relationship with the male Warrant Officer (in charge of the snipers).  The Warrant is among those who die at the end. 

Thanks Dee!

IMDB