The suspect was hiding out in the mountains for three weeks.

Literal

Suspect [topic-は] 3-week mountain [at-に] was-hiding-out.

潜伏する ('to hide out / lie low') is formal crime-reporting vocabulary — 潜 ('submerge / hide') + 伏 ('lie down'). ~ていた is past ongoing.