In the Name of Allah, the Most Gracious, the Most Merciful.
As-salāmu ‘alaykum wa-rahmatullāhi wa-barakātuh.
If your intention was merely to follow the procedures necessary to obtain your citizenship, then that would not constitute Kufr.
You may also refer to "askimam.org" regarding this matter.
And Allah Ta’āla Knows Best
Mufti Saeed Ahmed Golaub
Islamic Solutions
Jamaica