1. People were excited by UFO appearing in the sky.

2. People were excited by UFO which appeared in the sky.
========
Does #1 mean #2?

Yes, they mean the same thing, but you need to put 'a' in front of 'UFO.'