Ship's captain detained after Indonesia ferry fire kills 23