On certain solutions of a pendulum-type equation