A security guard suffered a heart attack following an incident involving youths at a Livingston shopping centre.