Uthman Mukhtari was an 11th-century and 12th-century poet of Ghaznavids, an empire originating from Ghazna located in Afghanistan .