Somalia sacks spy agency, police chiefs after blasts