In an agreed statement, the military personnel said they were told that if they did not admit they had strayed into Iranian waters, they faced seven years in prison.