India says it will take all necessary measures to safeguard its national interests and economic security