An earthquake with a preliminary magnitude of 5 struck Nagano Prefecture at 12:48 p.m. Tuesday, the Japan Meteorological Agency reported. No tsunami alert was issued, the agency said.