The parliament building in Westminster was put in lockdown after what police said was a "terrorist incident" in central London.