Spain's spy chief sacked over phone hacking scandal