Can an F1-visa student pursuing masters in US teach in community college?
In the US, F-1 visa holders can apply for an extension called Optional Practical Training (OPT) after their graduation. The default is a 1 year extension, and STEM field graduates have a slightly longer period. 

Talk to the people responsible for international student affairs in your school for more details.