A 16-year-old boy armed with a knife was shot dead by police after he stabbed a man in the Australian west coast city of Perth.
The incident occurred in the car park of a hardware store in suburban Willetton on Saturday night.
The teenager attacked the man and then rushed at police officers before he was shot, Western Australian premier Roger Cook told reporters on Sunday.
"There are indications he had been radicalised online," Mr Cook told a news conference.
"But I want to reassure the community at this stage it appears that he acted solely and alone," he added.
A man in his 30s was found at the scene with a stab wound to his back. He was taken to a hospital in a serious but stable condition, a police statement said.
Police and Australian Security Intelligence Organisation (ASIO) agents have been conducting a counterterrorism investigation in the east coast city of Sydney since another 16-year-old boy stabbed an Assyrian Orthodox bishop and priest in a church on April 15.
That boy has been charged with committing a terrorist act. Six of his alleged associates have also been charged with a range of offences, including conspiring to engage in or planning a terrorist act. All remain in custody.
Prime Minister Anthony Albanese said he had been briefed on the latest stabbing in Perth by Australian federal police commissioner Reece Kershaw and ASIO director-general Mike Burgess, who heads the nation's main domestic spy agency.
"I'm advised there is no ongoing threat to the community on the information available," Mr Albanese said.
"We are a peace-loving nation and there is no place for violent extremism in Australia," he added.
Police received an emergency phone call after 10pm from a teenager saying he was going to commit acts of violence, Western Australian police commissioner Col Blanch said.
The boy had been participating in a programme for young people at risk of radicalisation, Mr Blanch added.
"I don't want to say he has been radicalised or is radicalised because I think that forms part of the investigation," he said.
Police said they were later alerted by a phone call from a member of the public that a knife attack was underway in the parking lot.
Three police officers responded, one armed with a gun and two with tasers.
Police deployed both tasers but they failed to incapacitate the boy before he was killed by a single gunshot, Mr Blanch said.
Mr Blanch said members of the local Muslim community had raised concerns with police about the boy's behaviour before he was killed on Saturday.
The Imam of Perth's largest mosque, the Nasir Mosque, condemned the stabbing.
"There is no place for violence in Islam," Imam Syed Wadood Janud said in a statement.
"We appreciate the effort of the police to keep our communities safe. I also want to commend the local Muslim community who had flagged the individual prior with the police," Mr Wadood added.
Some Muslim leaders have criticised Australian police for declaring last month's church stabbing a terrorist act but not a rampage two days earlier in a Sydney shopping mall in which six people were killed and a dozen wounded.
The 40-year-old attacker in the mall attack was shot dead by police. Police have yet to reveal the man's motive.
The church attack is only the third to be classified by Australian authorities as a terrorist act since 2018.
In December 2022, three Christian fundamentalists shot dead two police officers and a bystander in an ambush near the community of Wieambilla in Queensland state. The attackers were later killed by police.
In November 2018, a Somalia-born Muslim stabbed three pedestrians in downtown Melbourne, killing one, before police shot him dead.