A man charged with the murder of a much-loved school head teacher has pleaded not guilty.