Morocco's navy opened fire on a boat carrying migrants off its Mediterranean coast Tuesday, wounding four.
Moroccan officials say the boat's Spanish captain ignored orders to stop.
The wounded migrants were taken to a hospital while authorities seized the boat and opened an investigation. It gave no other information.
Meanwhile, France, Germany, Malta, Portugal and Spain reached a deal Tuesday to take in a boatload of 58 migrants stranded at sea.
The Aquarius will dock in Malta, where the 58 migrants will disembark and head for their new homes.
A dog named Bella is also aboard the ship. Her final destination has not been revealed.
Italy's new right-wing government refused to let the ship dock, saying it has taken in enough migrants over the past several years and other EU members need to help out.
France also denied permission for the boat to go to Marseille, saying under the law of the sea, the ship needs to head to the closest port.
Two well-known charities — Doctors Without Borders and SOS Mediterranee — operate the Aquarius.
The ship picked up more than 600 migrants from the Mediterranean in June. EU nations squabbled for nearly two months over who is responsible for accepting them before several nations gave them refuge.