DARNAH, Libya — Abdul-Hakim al-Hasadi first took up arms nearly 20 years ago to try to bring Islamic law to Libya. He studied under the Taliban in Afghanistan, and during last year’s uprising he led a local militia council here in a city famous as a cradle of Islamic jihad.