Deputy Afghan Justice Minister Mohammed Qasim Hashimzai says more than a thousand inmates armed with makeshift weapons began the revolt late Saturday .