KP Police foils major terror plot