Martinez tweeted about the incident later in the day, expressing her frustration at the school.
"I decided not to wear a bra today and got pulled out of class bc one of my teachers complained that it was a ''distraction to boys in my class.'' My school basically told me that boys' education is far more important than mine and I should be ashamed of my body."
She later tweeted at the school to "Stop sexualizing my body," but the school's Twitter account blocked her soon-after.
On Thursday afternoon, the school district acknowledged that Braden River school officials could have handled the situation better, but the district said it was only trying to enforce the district's dress code.
"This matter was brought to the attention of the Superintendent's Office for review," the district's general counsel, Mitchell Teitelbaum, said in a prepared statement.
"It is undisputed that this matter should have been handled differently at the school level and corrective measures have been taken to prevent a reoccurrence in the way these matters will be addressed in the future."
Teitelbaum went on to say Martinez violated the dress code by dressing in a way that distracted other students, and that school officials were only trying to help her fix the violation.
"You are expected to dress appropriately for school and for the business of learning with proper attention given to personal cleanliness, grooming and neatness," the district's Code of Student Conduct states.
The dress code does not specifically address or require bras.