Shalit was captured by militant groups in Gaza in June 2006 .