The Chinook helicopter was returning to Bagram air base from Ghazni province , southwest of the capital , Kabul , when it went down near Ghazni city .