ALIAGA, Turkey (Reuters) - A Turkish court has ruled to keep in jail an American pastor being tried on terrorism and spying charges, a case which has deepened a rift between two NATO allies.

Andrew Brunson, a Christian pastor from North Carolina who has lived in Turkey for more than two decades, was indicted on charges of helping the group that Ankara blames for the failed 2016 coup against President Tayyip Erdogan, as well as supporting outlawed PKK Kurdish militants.

The next hearing for the trial is scheduled for October 12.