Police repulse terrorist attack