President, PM condemn terror attack in Mardan