Both hijackings occurred off Somalia 's eastern coast , in the Indian Ocean .