A Jordanian government spokesman has expressed "regret" over civilian casualties in an airstrike it said was targeting "IS" militants.