A 26-year-old male presents with sudden onset of chills and fever (temperature 39°C), left-sided chest pain, and cough with scant white sputum after catching a cold. Chest X-ray shows a patchy shadow in the left lower lung field. After 1 day of penicillin treatment, his temperature normalizes. The most likely diagnosis is: