Taliban militants have told people not to take part in what they consider a foreign-imposed process and warning election centres may be attacked.