The attackers opened fire at the troops manning gate of the base and were travelling in two vehicles packed with explosives and tried to destroy the security force headquarters at Timergara.
Acccording to the military officials’ two civilians and 12 soldiers were injured.
However guards killed all the four suicide attackers.
The Pakistani Taliban claimed responsibility for the attack in a telephone call to a news agency.
The Pakistani Taliban has declared war on the government because the group deems it un-Islamic and is upset at its alliance with the US.