A leading Zambian opposition politician who was arrested twice last week has pleaded not guilty to a charge of training a private militia ahead of elections in August.