The correct answer is
"The unexpected blackout occurred near the masquerade ball."
Explanation:
Prepositions ordinarily interpret the state of something, the time when something happens and the process in which something is done, although the prepositions "of," "to," and "for" hold some separate uses. Prepositions can sometimes be used to complete sentences.