The Indian military warned military personnel not to use social networks such as Facebook and WhatsApp