St. Mary’s pulls away late to overcome rough outing