Connect to your Magento database using your favourite database GUI (PHPMyAdmin, HeidiSQL, MySQL Workbench, etc.).
Caution: backup your database
Go to the table eav_attribute and edit the column attribute_code. You can rename the attribute code here.
Once you have renamed the attribute code in the database, go to the Magento admin and re-index (System > Index Management) all indexes.