North Korea orders troops on war footing after exchange of fire with South