Libyan authorities have arrested more than 100 people near Tripoli as they were preparing to cross the Mediterranean to Europe, a coastguard official said.