The militants were trying to take it back , but government commanders said Friday they had been driven off .