Police in the US have arrested a suspect in the shooting which killed nine people in a historic black South Carolina church.