Rabat - An Italian court on Wednesday has released a Moroccan migrant who was accused of being the mastermind of Bardo Museum attack in Tunisia.