Palestinian authorities have begun a rare military trial of security officers accused of torturing a Hamas suspect to death.