Prime Minister Narendra Modi has said that India shared Myanmar's concern about "extremist violence" in its Rakhine state, where a security force operation against Muslim rebels has sent about 125,000 people fleeing to Bangladesh.