The interior ministry said a man affiliated with IS entered a church and opened fire before blowing himself up.