Warning over election terror attack