Cantonment in Swat will act as a deterrent for terrorist, says COAS