US is to close consulate in Iraq city of Basra following violence