How can India ensure the safety and well-being of its students studying abroad during crises?

The recent stabbing of Indian medical students in Russia has raised concerns about the safety of Indian students overseas. I want to understand what measures can be taken by the Indian government to protect its citizens studying in foreign countries, especially during emergencies.