Mr. Qanuni lost to Mr. Karzai in the country 's first democratic presidential election in October .