Nine people have life-threatening injuries, police say, with counter-terror police joining the investigation.