Add the shrimp in a single layer in pan. Sprinkle with salt and pepper. After several minutes, turn the shrimp over and add the remaining tablespoon of oil, garlic, and red pepper flakes. Add the green beans. Stir for several minutes until the shrimp is pink and cooked through.