Hundreds of police have undergone specialist training to take down terrorists and armed offenders in shopping centres, stadiums and major public spaces.