The integral is evaluated using the residue theorem. First, we express the function \( \frac{1}{z^2 + 9} \) as \( \frac{1}{(z - 3i)(z + 3i)} \). The residue at \( z = 3i \) is \( \frac{1}{6i} \), and thus the integral is \( 2\pi i \times \frac{1}{6i} = \frac{\pi}{3} \).