The highly pathogenic H5 virus was detected through genetic testing of chickens at a farm in Kumamoto prefecture in the south, the ministry said on its Website.