The Prime Minister used the sacking of the Foreign Office’s most senior civil servant as a way of deflecting political criticism of his actions