Facebook has revealed that hackers from Pakistan used its platform to target Afghan citizens at a time when the Taliban was taking control of the country.