Attack in Shiite neighborhood kills 31