Defense ministry spokesman, Gen. Zahir Azimi said the two Afghan soldiers were martyred in the past 24 hours.
Gen. Azimi did not disclose further information regarding the exact location of the incident.
In the meantime, Azimi said at least four militants were killed during the military operations and various types of weapons were confiscated during the operations.
The anti-government armed militant groups have not commented regarding the report so far.
There have been a spike rise in Afghan national security forces casualties after taking lead in security responsibilities from the NATO-led coalition forces.
According to the defense officials, Afghan army casualties in 1392 were 3.8 percent daily on average basis which is mainly caused due to improvised explosive device (IED) attacks.