Norwegian police have arrested a man suspected of killing five people and injuring two others in a series of bow-and-arrow attacks.