TSA officers are not law enforcement. This means that if they find something on your person or in your bags, they cannot arrest you. They can simply detain you until a law enforcement officer arrives. However, most airports have airport police who are usually, stationed with the TSA agents.