I have found that carb cylcing is a good way to lose fat while maintaining muscle. I have two low carb days, 2 extremely low carb days, 1 very high carb day followed by 2 moderate days. Obviously high protein, and try to get your carbs from clean foods excluding the high carb day where you eat everything.
I found this to work well when losing fat and maintaining, and even gaining some muscle size.