Police believe they have thwarted an active terror plot after a raid in north London which saw a woman shot and injured by officers.