A Muslim man was allegedly attacked by a group of people at a village near here for uploading a picture of himself consuming beef soup, police said Friday.