The infringements were the first by Russia in five years, according to the Japanese defense ministry. A fighter fired a warning flare in response.