British officials tore into technology companies for what they said was profiting from terrorist propaganda and offering them secret places to communicate, in strong criticism of Silicon Valley days after a terrorist rampage outside Parliament left four people dead.