Police, paramedics, and firefighters tested their response to a terror attack scenario in the largest training exercise of its kind in modern times.