The $variable
strings are not interpreted by Csh within the 'single quotes'.
Perhaps the simplest fix is to use (GNU) Awk variables as command-line parameters:
#!/bin/csh
set str = "peanut"
set sr = "an"
awk -vstr=$str -vsr=$sr 'BEGIN { print index(str, sr)}'