The Relationship of Hard X-Ray and Optical Line Emission in Low-Redshift Active Galactic Nuclei