EU country sacks official after bizarre X tirade