Tom Brady on Tuesday reacted to the death of his former New England Patriots teammate, Ryan Mallett.

Mallett, 35, drowned in the Gulf of Mexico off of the Florida coast, the Okaloosa County Sheriff’s Office confirmed. Officials said Mallett was one of the people near a sandbar who were struggling to make it back to shore and went under. Lifeguards pulled him out, but he was not breathing and later died.

CLICK HERE FOR MORE SPORTS COVERAGE ON foxnews.1eye.us

Brady posted a photo of himself and Mallett at camp on his Instagram Stories back when the two were on the Patriots.

Ryan Mallett and Tom Brady before the Jets game

New England Patriots quarterback Tom Brady and teammate Ryan Mallett walk out of the tunnel before they play the New York Jets at MetLife Stadium on Sunday, Oct. 20, 2013. (Matthew J. Lee/The Boston Globe via Getty Images)

"We lost a great man," Brady wrote. "Thank you for everything Ryan. … Praying for the Mallett family and all their loved ones tonight."

Mallett was a standout quarterback at Arkansas before the Patriots selected him in the third round of the 2011 NFL Draft. He was with the Patriots until the 2014 season, when he joined the Houston Texans. He was later traded to the Baltimore Ravens before he came a free agent in March 2018.

FLORIDA SHERIFF BLASTED BEACHGOERS FOR IGNORING WARNINGS BEFORE EX-NFL QB RYAN MALLETT'S DROWNING

The NFL released a statement on Mallett's death.

Tom Brady and Ryan Mallett before the playoffs

New England Patriots backup quarterback Ryan Mallett, left, and Patriots quarterback Tom Brady, right, at an afternoon practice as the team prepares for the playoffs. (Jonathan Wiggs/The Boston Globe via Getty Images)

"The NFL family is deeply saddened by the passing of Ryan Mallett. Our thoughts are with his family and loved ones," the league said.

The Patriots later released a statement.

"The New England Patriots are deeply saddened to learn of the sudden and unexpected passing of former quarterback Ryan Mallett. Our thoughts are with the Mallett family, his former teammates and all who are mourning his loss."

Mallett took over as the head coach of White Hall High School in Arkansas. The school district released a statement on his death.

Ryan Mallett talks to Tom Brady

Ryan Mallett, #15, and Tom Brady, #12 of the New England Patriots, during their game at Bank of America Stadium on Nov. 18, 2013 in Charlotte, North Carolina. (Streeter Lecka/Getty Images)

CLICK HERE TO GET THE FOX NEWS APP

"It is with great sadness that we share the loss of Coach Ryan Mallett. Coach Mallett was a beloved coach and educator. We ask that you remember his family, team, students, fellow coaches, and the White Hall School District staff in your prayers," the school said.

Fox News’ Scott Thompson contributed to this report.