NATO says its forces were responding to small arms fire from insurgents in Ghazni province , when two of its Apache helicopters fired on police by mistake .