A teenager has been arrested after a Porsche crashed into a golf course, with police alleging he had plans to commit a public shooting.