Spain fires head of security agency amid Pegasus spying scandals