Violation of the Bell-Clauser-Horne-Shimony-Holt inequality using imperfect photodetectors with optical hybrid states