Turkish court dismisses case against ex-military chief