The attack took place during a funeral in the southern province of Karak, according to Jordan’s state broadcaster.