The captain of a migrant rescue ship is charged with attacking a Coast Guard boat after a stand-off.