More than 300 schoolboys kidnapped in northern Nigeria have been rescued, the Katsina state governor has said.