He was taken to Ayr hospital for treatment, where his condition is described as stable.
The suspect is described as having a medium build, 5ft 9ins, around 30, with short brown hair. At the time of the incident he was wearing a red jacket.
Chief Inspector Brian Anderson, area commander at South Ayrshire, said: "Inquiries are currently ongoing to establish the full circumstances surrounding this incident.
"I would urge anyone who has any information that could assist with our investigation to get in contact with police.
"There will be an increased police presence in the area and if you have any concerns I would encourage you to speak to officers."
Reporting by PA
A message from the Editor:
Thank you for reading this story on our website. While I have your attention, I also have an important request to make of you.
With the coronavirus lockdown having a major impact on many of our advertisers - and consequently the revenue we receive - we are more reliant than ever on you taking out a digital subscription.
Subscribe to scotsman.com and enjoy unlimited access to Scottish news and information online and on our app. With a digital subscription, you can read more than 5 articles, see fewer ads, enjoy faster load times, and get access to exclusive newsletters and content. Visit https://www.scotsman.com/subscriptions now to sign up.
Our journalism costs money and we rely on advertising, print and digital revenues to help to support them. By supporting us, we are able to support you in providing trusted, fact-checked content for this website.
Want to join the conversation? Please or to comment on this article.