Original: In response, Carter sent three British gunboats to avenge the outrage upon the envoy.
Simplified: In response, Carter sent three British gunboats to get revenge for the bad treatment shown to the envoy.