A Germany-bound flight from the US state of Texas has been evacuated after being diverted to New York over a bomb threat that was phoned in, officials say.