Maltese soldiers have taken control of a small tanker that was hijacked by migrants it had rescued off Libya, the Armed Forces of Malta (AFM) said in a statement on Thursday.