Azhar Ahmed, 19, is said to have posted the comments on his profile page and has been charged with a racially aggravated public order offence.

A West Yorkshire Police spokesman said Ahmed, of Fir Avenue, Ravensthorpe, was criticising the level of attention the British soldiers who died in a bomb blast received compared to Afghan civilians who have died in the war.

The spokesman said: "He didn't make his point very well and that is why he has landed himself in bother."