Somalia, Kenya should avoid diplomatic row: ex-PM