JFK International Airport in New York City has reopened two terminals that were evacuated after a false alarm of shots fired caused a panic among passengers.