Read the article ... it's clearly explained.
No it’s not.
It’s not like he went to a temporary refugee camp in Pakistan until he could be placed somewhere else.
He may have been a Somali refugee in Pakistan, but he stayed there for seven years. I don’t care what the UN or the US State Department says - if he lived in Pakistan for seven years then he was a refugee from Pakistan.