The correct analogy is "Temple : Deity" because a temple, like a school, is a place for a specific purpose—in this case, worshipping deities.
A school is a place for students, and a temple is a place for deities, making "deity" the most logical answer.
"Priest" (1) and "sweeper" (2) are roles that work in the temple, but they are not the main focus of the temple, which is the deities.
"Devotee" (4) refers to worshippers fit as the direct counterpart to "Temple " in the analogy.
Conclusion:
The correct word to complete the analogy is "deity," as temples are places for worshiping deities, just as schools are places for students.