A man has been arrested after a bus driver went on a 15-mile rampage, killing nine and injuring 27 in the Indian city of Pune.