This happens frequently - just keep beating it and the buttercream will eventually turn silky, smooth and wonderful again.