Yemeni president sacks security chief in wake of attack