The effect of symmetry on resonant and nonresonant photoresponses in a field-effect terahertz detector