MI5 chief warns of terrorist plots