During his more than four decades in power, Col. Muammar el-Qaddafi of Libya was North Africa’s outrageously self-styled arms benefactor, a donor of weapons to guerrillas and terrorists around the world fighting governments he did not like.