In a medium saucepan cook pasta according to package directions. Drain.
Meanwhile, in a large saucepan, heat the olive oil over medium heat. Add the shrimp and garlic and cook until the shrimp are opaque throughout, about 4 minutes. Transfer the shrimp mixture to a bowl and set aside.
Add the tomatoes, tomato paste, basil, oregano, capers, and red pepper flakes to the large pan. Bring to a simmer and cook 10 minutes, uncovered, stirring occasionally. Return the shrimp mixture to the pan and cook until heated through, about 2 minutes. Serve over pasta.