The online version of Chambers Dictionary says of the P-word, "offensive Brit slang a a Pakistani; b loosely someone from any part of the Indian subcontinent. Also as adj.
ETYMOLOGY: 1960s"
As for the word "Brit," do you think it is used as a term of endearment when the phrase "Brits out!" is used in Ulster?
"Rag head!!!!!!!! Come on this is a term for people Killing our soldiers" no, it is an offensive term used to describe folk who are NOT killing soldiers, they just happen to wear a turban. It is also used to describe Muslims whether they wear a turban or no.
It is NOT about swearing, it's about using offensive, racist language.