The drone entered the country after being diverted by Russian electronic warfare systems, Latvia's military said.