Authorities say security forces opened fire on the attackers Tuesday as they tried to infiltrate the training center in the town of Mardan , near the Afghan border .