A 22-year-old man armed with a machete attacked a priest and several churchgoers after he stormed a Catholic church in the Indonesian city of Yogyakarta.