A Virginia man pleaded guilty to a burglary charge for his role in a Myrtle Beach home invasion that left the homeowner shot.