Lionel Messi was caught in a physical encounter with security during a pitch invasion at Inter Miami's friendly match in Puerto Rico.