Authorities detained a Seguin High School student Thursday in connection with a photograph that circulated on social media depicting the student holding a handgun.