The military helicopter that collided with an American Airlines flight this week was conducting training to prepare for a catastrophe or attack on the US.