Often the target of U.S. human rights accusations, China wasted little time returning such charges following the shooting at a historic black church in South Carolina that left nine people dead. Elsewhere in Asia, the attack renewed perceptions that Americans have too many guns and have yet to overcome racial tensions.

Some said the attack reinforced their reservations about personal security in the U.S. — particularly as a non-white foreigner — while others said they'd still feel safe if they were to visit.

Especially in Australia and northeast Asia, where firearms are strictly controlled and gun violence almost unheard of, many were baffled by the determination among many Americans to own guns despite repeated mass shootings, such as the 2012 tragedy at Sandy Hook Elementary School in Newtown, Connecticut, where a gunman killed 20 children and six adults.

"We don't understand America's need for guns," said Philip Alpers, director of the University of Sydney's GunPolicy.org project that compares gun laws across the world. "It is very puzzling for non-Americans."

A frontier nation like the U.S., Australia had a similar attitude toward firearms prior to a 1996 mass shooting that killed 35. Soon after, tight restrictions on gun ownership were imposed and no such incidents have been reported since.

Ahmad Syafi'i Maarif, a prominent Indonesian intellectual and former leader of Muhammadiyah, one of the country's two largest Muslim organizations, said the tragedy shocked people everywhere.

"People all over the world believed that racism had gone from the U.S. when Barack Obama was elected to lead the superpower, twice," he said. "But the Charleston shooting has reminded us that in fact, the seeds of racism still remain and were embedded in the hearts of small communities there, and it can explode at any time, like a terrorist act by an individual."

A 21-year-old white man, Dylann Storm Roof, is accused of fatally shooting nine people at a Bible study at the historically black Emanuel African Methodist Episcopal Church in Charleston, South Carolina. An acquaintance said Roof had complained that "blacks were taking over the world."

Racially charged shootings in the U.S. have received widespread global attention. Last August, protests erupted in Ferguson, Missouri, after a white police officer fatally shot an 18-year-old black man who was unarmed.

Prominent Malaysian social commentator Marina Mahathir said many in her country find it puzzling why the U.S. government won't restrict gun ownership laws. The Second Amendment of U.S. Constitution protects the right to keep and bear arms.

"We are mystified by the freedom of guns there. It's a bizarre idea that everyone should have their right to arms," said Marina, the daughter of former Prime Minister Mahathir Mohamad.

Indian writer and documentary filmmaker Sohail Hashm said the American gun culture was linked to racial discrimination and America's insistence on being the global policeman.

"Everybody (in America) loves to have guns. This is the dominant culture because this is what they have built," Hashmi said. "And with guns available so freely, is it any surprise that such incidents happen?"

In China, the official Xinhua News Agency said the violence in South Carolina "mirrors the U.S. government's inaction on rampant gun violence as well as the growing racial hatred in the country."

"Unless U.S. President Barack Obama's government really reflects on his country's deep-rooted issues like racial discrimination and social inequality and takes concrete actions on gun control, such tragedy will hardly be prevented from happening again," Xinhua said in an editorial.

On China's Twitter-like Weibo microblogging service, some users compared the United States to lawless Somalia and said racial discrimination was fueling violence and high crime rates. Many reflected the official view that gun ownership and violent crime are byproducts of Western-style democratic freedoms that are not only unsuited to China but potentially disastrous.

Recalling the recent killings of Chinese and other foreign students in the U.S., office worker Xie Yan said he was still eager to visit the U.S., but would be "extremely careful" there.

Xie said he had heard much about racism in the U.S., but was uncertain about the underlying dynamics.

"We tend to see the U.S. as a violent place, but I don't think we understand a lot about racism there. Chinese are free to study, visit and live there so it doesn't feel like we're discriminated against," Xu said while waiting for a train on Beijing's busy subway line 1.

Like Australia, China has had its problems with racial and ethnic discrimination. China is overwhelmingly dominated by one ethnic group, the Han, and activists decry the lack of awareness about discrimination in jobs and housing faced by minorities such as Tibetans and Turkic Muslim Uighurs from the northwest.

Chinese police have been accused of heavy-handed tactics against those labeled separatists or terrorists, although such measures appear to be supported by most Chinese.

In Japan, discrimination tends to be based less on skin color than on national origin, resulting in biases against Chinese and Koreans, said Hiroko Takimoto, 41, a patent attorney in Tokyo.

Racially motivated killings are "simply something Japanese as a people cannot understand," she said.

Yukari Kato, vice president of the company Ryugaku Journal that assists Japanese students on overseas programs, including about 2,000 in the U.S., said violence there was nothing new and most of the country remained perfectly safe.

"It's no different from Japan. There are places where you can become a victim of crime. You just have to be prepared to defend yourself," she said.

However, Yuka Christine Koshino, 21, a political science student at Tokyo's Keio University, said she was devastated by the shootings, particularly after having participated in racism awareness campaigns while studying at the University of California, Berkeley. Those interactions had given her hope that the situation was improving. The shootings "shocked me," said Koshino.

Chairman of the Philippine Alliance of Human Rights Advocates Max de Mesa shared the sentiment of civil rights activists in South Carolina who pointed out that the Confederate battle flag, the symbol of pro-slavery South during the Civil War, continued to fly over the state even as it mourned for the nine people killed.

"Some of the (old) structures and some of the attitudes remain and they were even nurtured, at least that is being shown now," de Mesa said.

"That would be no different from a suicide bomber," he said. "For a jihadist, 'I will be with Allah if I do that.' The other says, 'I am proving white supremacy here.'"

Indonesian intellectual Syafi'i Maarif said he hoped the incident would help Americans stop equating terrorism with Islam.

"Terrorism and radicalism can appear in every strata of society under various guises and in the name of ethnicity, religion and race," he said.