Hundreds of people have been detained under the new laws since the beginning of 2019.
Television footage showed minister Wiranto slumping to the ground beside his auto after the attack in Pandeglang, in Banten province, west of the capital Jakarta on the island of Java.
Mr Wiranto has undergone surgery, while the hospital said he is conscious and in stable condition. A husband and wife have been arrested in relation to the attack.
Prasetyo said the attacker also wounded a police chief who was about to greet Wiranto as he got out of a vehicle, along with a villager.
After the attack Wiranto was immediately rushed to a local hospital before being flown by helicopter to Gatot Subroto hospital in Jakarta where he is being treated for two "rather deep" wounds to the left side of his abdomen.
Police identified the suspect as Syahril Alamsyah and said they also arrested his wife, Fitri Andriana.
The minister had been in the area to open a new building at a university and people were lining up to shake his hand and take selfies with him before the attack around noon, said Tohir.
National Police Spokesman Brig.Gen.Dedi Prasetyo confirmed the attack on Wiranto, and the Pandeglang district administration would brief the journalists on the incident.
Officers wrestled the suspect to the ground and an image supplied by police showed the suspect, who was wearing a black shirt and light pants, with his arms and legs secured.
He led a political party in 2014 which threw its support behind Widodo's successful presidential campaign, bringing the retired general back to an influential role in the world's largest Muslim-majority nation with a history of deadly militant attacks.
Wiranto is a former military commander who is known as one of President Joko Widodo's closest aides.
He has faced controversy over alleged human rights violations and allegations of crimes against humanity linked to Indonesia's brutal occupation of East Timor.