I'm not justifying or taking sides but I bet this would've happened in Pakistan as well if you had Africans visiting and studying there. These people run drugs and have criminal gangs, their women will browbeat police by threatening to tear clothes and allege rape, men will threaten to bite and claim they have AIDS. So the police will be intimidated and will leave them alone to do their stuff and then eventually public will get mad and take matters into their own hands. India is racist alright but not the kind of racist where people will just form a crowd and beat up a poor African. It takes more to provocate people to that level.