Taliban militants have shot and killed a man for teaching English in eastern Afghanistan , sparking a gunbattle that left two militants and two policemen dead .