The machete attack took place at a wooden hut that had been erected outside the Charleroi police station to provide an additional layer of security.
Paul Magnette, mayor of the city in southern Belgium, says the checkpoint succeeded in preventing the attacker from reaching the building and causing more havoc. The mayor said that in the wake of the attack, Belgian authorities are discussing whether security for police facilities and officers should be beefed up further.
Belgium has been on high security alert for months since suicide bombers hit Brussels airport and a subway station near the European Union's institutions on March 22, killing 32 people.
The attacks were claimed by the Islamic State jihadist group. Separately on July 30, Belgian authorities charged a 33-year-old man, identified as Nourredine H., with attempting to commit "terrorist murder" and "taking part in the activities of a terrorist organisation." Belgium was also a springboard for the Islamic State cell which carried out the November 13 2015 attacks in Paris which killed 130 people, investigators say.