The Ministry of Defense (MoD) said at least three of the militants were killed in Geru district in Ghazni and two others were killed in Mosa Qala district of Helmand.
A statement by MoD said at least five militants were also injured during the operations.
Afghan army forces also confiscated some weapons along with ammunition during the operations, the statement by MoD said.
In the meantime, an Afghan National Army (ANA) soldier was martyred following an Improvised Explosive Device (IED) attack.
The Ministry of Defense said the soldier was martyred in the past 24 hours, but no further details were given regarding the exact location.
The Taliban militants group has not commented regarding the report so far.