Higher-derivative interactions of higher-spin gauge fields