Authorities are hunting gunmen who opened fire on a funeral at a church in Jordan, killing eight people and prompting stepped-up security across the country.