A Libyan Coast Guard ship picked up more than 350 migrants at sea Wednesday after a potentially deadly encounter with a German rescue boat.

No casualties have been reported, and all the migrants rescued off the coastal city of Sabratha are back in Tripoli.

A Libyan navy spokesman said the migrants were packed on a wooden boat. As the Coast Guard vessel approached, another boat from the German rescue group Sea Watch came dangerously close to ramming the Libyan ship.

Sea Watch was apparently attempting to drive off the Libyans.

It is unclear if Libyan authorities plan to take legal action against Sea Watch.

Tens of thousands of African and Middle Eastern migrants try to reach the European Union every year through Libya, looking to escape poverty, war and terrorism.

Many die making the hazardous Mediterranean crossing on poorly built boats, or pay human traffickers thousands of dollars only to be abandoned at sea.