WCP / 4CRNS / Fame Flynet 1 / 17
WCP / 4CRNS / Fame Flynet 1 / 17

TOKYO (AP) — Justin Bieber has apologized to those he offended by visiting Japan's Yasukuni war shrine this week, saying he was misled to see it as only a place of prayer.

RELATED: Selena Gomez unfollows Justin Bieber and more famous friends on Instagram

The Shinto shrine in Tokyo honors 2.5 million war dead, including 14 convicted war criminals. China and South Korea in particular see Yasukuni as a symbol of Japan's past militarism and see visits to it as a lack of understanding or remorse over wartime history.

RELATED: Jon Hamm thinks Bieber needs to be told "no" for a change

Two photos removed from Instagram showed Bieber praying outdoors at the shrine and standing beside a Shinto priest. The images outraged China as well as many commenters on Instagram and Twitter.

RELATED: BING: Craziest celeb arrests

In a new Instagram post Wednesday evening, Bieber said he asked his driver to stop when he saw the shrine.

"I was mislead to think the Shrines were only a place of prayer. To anyone I have offended I am extremely sorry," the post said.