Abu Farraj al-Libbi , a top al-Qaida operative and close associate of Osama bin Laden who is wanted for two attempts to assassinate Pakistani President Pervez Musharraf , has been arrested in Pakistan .