Three migrants drowned and 354 were rescued from dinghies in Spanish waters on Friday, the maritime rescue service said.