The Westminster terrorist was previously known to security services and had been investigated by MI5 over violent extremism.