If I were his mate and he showed me that picture, I would've told him not to post it on Twitter, because it'll be contextually confusing to many people.
When I look at the link, I don't think 'terrorist', because he's obviously Indian (his name, the picture in the background), and I don't link Indians with terrorism.
However, it's all about perception and context.
If the same fella was photographed with an AK-47 at the same rifle range that me and my mates went to outside Las Vegas a few year back, in the sun, grinning...contextually, it would say something completely different.
But this photo is a major mistake. It just plays into stereotypes.
And then to complain that his political enemies were behind the leak?
Mate...if you're going to post the shot on Twitter, then YOU are the source of the leak.