Phase separation and magnetic order in K-doped iron selenide superconductor