The Pakistani army said Friday it had arrested the gunmen who tried to kill schoolgirl campaigner Malala Yousafzai in the country's restive northwest in 2012.