A Syrian man has been arrested on suspicion of hijacking a truck and ramming it into traffic in western Germany on Monday night, injuring eight people, prosecutors said.