As he is getting settled in, two strangers enter the apartment and are surprised to find him there.
When he had settled in, two unfamiliar individuals arrived at the apartment and were taken by surprise upon finding him there.