India detains retired army solider declared 'foreigner'