A man was arrested for allegedly making objectionable comments against Prime Minister Narendra Modi on social media, the police said on Tuesday.