Ally with friendly countries to check anti-India networks, Shah tells agencies