Rigidity of special maps in Carnot groups