A statement released by the media office of Maidan Wardak on Sunday states that security forces had pre-information about the attack and coordinated a response to it.
When Taliban launched their attack on Saturday night it was rebuffed, the statement adds.
A Taliban commander by the name of Zabihullah alias Abbas was killed and two others wounded in the clashes.
Security forces and civilians have not suffered harm during the clashes, the statement states.
Taliban have ramped up their attacks on security posts and other government installations following the announcement of their so-called ‘Spring Offensive’ in April.
They have been able to capture districts and large areas from government but lost them back to security forces after suffering heavy casualties.