Pix is right,
somehow you change the imsi on-air,
HLR stores all subscriber info including security data of subscribers, (Ki)
whether you can change the imsi successfully or not
you will not be able to location update in roaming regarding the security issue.
so to change the imsi from local to foreign operator’s , don’t let you to use your sim card in foreign operator.