Jordan has announced three days of national mourning following an attack on a church in the city of Karak that left eight people dead.