"We can not confirm yet if this was a terror-related incident", said Yogyakarta police spokesman Yuliyanto, who goes by one name like many Indonesians.
The knife attack in Beijing took place in a busy mall, while the one in Indonesia took place during a church service.
District police chief Muhammad Firman Lukmanul Hakim said the suspect, who suffered gunshot wounds to his legs, is being held at Bhayangkara Hospital, where he is also being treated.
Police said they acted quickly and identified the detained man as a 35-year-old surnamed Zhu from Henan province.
A priest and three other people were seriously injured when a man attacked a church congregation with a sword during Sunday mass in Indonesia.
Kim Yo-Jong invites South Korea's Moon to North Korea
She is reportedly the first member of Jong-Un's family to travel South across the border since the Korean War. A Moon-Kim summit would mark the first time leaders of two countries have met in 11 years.
About 100 people were attending the service in the town of Sleman in Yogyakarta province on Java island when a man barged in wielding the sword began attacking terror-stricken faithful, seemingly indiscriminately.
A congregation member Andhi Cahyo said that a few minutes after the mass started, another member ran into the church with a bleeding head, while the man holding the sword was chasing him.
Church security tried to prevent the attacker from entering the church, but he forced his way in, police officials told CNN Indonesia.Police opened fire on the attacker, who's been hospitalized, it said.
He also attacked a priest who was standing at the altar.
Police arrived soon after the attack and fired a warning shot but the attacker refused to surrender.
Listen up! Let Serena Williams play singles in Fed Cup on Sunday
Yes, Serena is just five months removed from having a baby, and yes, she had life-threatening childbirth complications. Each player held serve the rest of the way as Williams improved her overall Fed Cup singles record to 20-2.
"Everybody started panicking and screaming".
'After the warning shot was sacked, the attacked charged toward the officer with his sword.
All victims have been taken to hospital for treatment.
But members of the small Christian minority have been targeted in recent attacks by militants and in religiously-fueled campaigns by conservative groups from the Muslim majority.
Advantage Investment Management LLC Has $397000 Stake in Walt Disney Co (DIS)
Finally, BDO Wealth Advisors LLC bought a new position in shares of Walt Disney during the second quarter valued at $153,000. Brian Bares increased its stake in Costar Group (CSGP) by 8.36% based on its latest 2017Q3 regulatory filing with the SEC.