Original: Of the small Greek force, attacked from both sides, all were killed except for the Thebans, who surrendered.
Simplified: The small Greek force was attacked from both sides.