Libya's coastguard on Sunday intercepted five boats carrying around 500 mostly African migrants trying to reach Europe and brought them back to shore, an official said.