In his statement outside Downing Street, David Cameron said:
"What happened yesterday in Woolwich has sickened us all. On our televisions last night and in our newspapers this morning we have all seen images that are deeply shocking.
"The people who did this were trying to divide us. They should know something like this will only bring us together and make us stronger."
More top news
The picture, which ITV News has chosen not to publish, shows the young boy, lying motionless on Bodrum beach in Turkey.
A teenager posing for selfies with a gun has died after the weapon reportedly went off.
Celebrity Big Brother fans have criticised the show for airing footage of Janice Dickinson having a fit after being stung by a bee.